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"
16 class ContentMainDelegateEfl
17 : public ContentMainDelegate {
19 ContentMainDelegateEfl() {}
20 // Tells the embedder that the absolute basic startup has been done, i.e.
21 // it's now safe to create singletons and check the command line. Return true
22 // if the process should exit afterwards, and if so, |exit_code| should be
23 // set. This is the place for embedder to do the things that must happen at
24 // the start. Most of its startup code should be in the methods below.
25 virtual bool BasicStartupComplete(int* exit_code) override;
26 virtual void PreSandboxStartup() override;
27 virtual ContentBrowserClient* CreateContentBrowserClient() override;
29 ContentBrowserClient* GetContentBrowserClient() const;
32 scoped_ptr<ContentBrowserClient> client_;
33 ContentClientEfl content_client_;
34 DISALLOW_COPY_AND_ASSIGN(ContentMainDelegateEfl);