1 // Copyright 2014 Samsung Electronics. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_MAIN_DELEGATE
6 #define CONTENT_MAIN_DELEGATE
8 #include "content/public/app/content_main_delegate.h"
10 #include "base/compiler_specific.h"
11 #include "content/public/browser/content_browser_client.h"
12 #include "common/content_client_efl.h"
18 class ContentMainDelegateEfl
19 : public ContentMainDelegate {
21 ContentMainDelegateEfl() {}
22 // Tells the embedder that the absolute basic startup has been done, i.e.
23 // it's now safe to create singletons and check the command line. Return true
24 // if the process should exit afterwards, and if so, |exit_code| should be
25 // set. This is the place for embedder to do the things that must happen at
26 // the start. Most of its startup code should be in the methods below.
27 virtual bool BasicStartupComplete(int* exit_code) override;
28 virtual void PreSandboxStartup() override;
29 virtual ContentBrowserClient* CreateContentBrowserClient() override;
31 ContentBrowserClient* GetContentBrowserClient() const;
34 scoped_ptr<ContentBrowserClient> client_;
35 ContentClientEfl content_client_;
36 DISALLOW_COPY_AND_ASSIGN(ContentMainDelegateEfl);