0e98878b1bb48ae20aee0602b9579b9d705f3370
[platform/framework/web/chromium-efl.git] / tizen_src / ewk / efl_integration / content_main_delegate_efl.h
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.
4
5 #ifndef CONTENT_MAIN_DELEGATE
6 #define CONTENT_MAIN_DELEGATE
7
8 #include "content/public/app/content_main_delegate.h"
9
10 #include "base/compiler_specific.h"
11 #include "content/public/browser/content_browser_client.h"
12 #include "common/content_client_efl.h"
13
14 class EWebContext;
15
16 namespace content {
17
18 class ContentMainDelegateEfl
19     : public ContentMainDelegate {
20  public:
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;
30
31   ContentBrowserClient* GetContentBrowserClient() const;
32
33  private:
34   scoped_ptr<ContentBrowserClient> client_;
35   ContentClientEfl content_client_;
36   DISALLOW_COPY_AND_ASSIGN(ContentMainDelegateEfl);
37 };
38
39 }
40
41 #endif