Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Side by Side Diff: android_webview/lib/main/aw_main_delegate.h

Issue 10893025: Android WebView: tidy up source/gyp layout. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « android_webview/lib/android_webview.gyp ('k') | android_webview/lib/main/aw_main_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ANDROID_WEBVIEW_LIB_MAIN_WEBVIEW_MAIN_DELEGATE_H_ 5 #ifndef ANDROID_WEBVIEW_LIB_MAIN_AW_MAIN_DELEGATE_H_
6 #define ANDROID_WEBVIEW_LIB_MAIN_WEBVIEW_MAIN_DELEGATE_H_ 6 #define ANDROID_WEBVIEW_LIB_MAIN_AW_MAIN_DELEGATE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/common/chrome_content_client.h" 9 #include "chrome/common/chrome_content_client.h"
10 #include "content/public/app/content_main_delegate.h" 10 #include "content/public/app/content_main_delegate.h"
11 11
12 namespace content { 12 namespace content {
13 class BrowserMainRunner; 13 class BrowserMainRunner;
14 } 14 }
15 15
16 namespace android_webview { 16 namespace android_webview {
17 17
18 // Android WebView implementation of ContentMainDelegate. 18 // Android WebView implementation of ContentMainDelegate.
19 class WebViewMainDelegate : public content::ContentMainDelegate { 19 class AwMainDelegate : public content::ContentMainDelegate {
20 public: 20 public:
21 WebViewMainDelegate(); 21 AwMainDelegate();
22 virtual ~WebViewMainDelegate(); 22 virtual ~AwMainDelegate();
23 23
24 private: 24 private:
25 // content::ContentMainDelegate implementation: 25 // content::ContentMainDelegate implementation:
26 virtual bool BasicStartupComplete(int* exit_code) OVERRIDE; 26 virtual bool BasicStartupComplete(int* exit_code) OVERRIDE;
27 virtual void PreSandboxStartup() OVERRIDE; 27 virtual void PreSandboxStartup() OVERRIDE;
28 virtual void SandboxInitialized(const std::string& process_type) OVERRIDE; 28 virtual void SandboxInitialized(const std::string& process_type) OVERRIDE;
29 virtual int RunProcess( 29 virtual int RunProcess(
30 const std::string& process_type, 30 const std::string& process_type,
31 const content::MainFunctionParams& main_function_params) OVERRIDE; 31 const content::MainFunctionParams& main_function_params) OVERRIDE;
32 virtual void ProcessExiting(const std::string& process_type) OVERRIDE; 32 virtual void ProcessExiting(const std::string& process_type) OVERRIDE;
33 virtual content::ContentBrowserClient* CreateContentBrowserClient() OVERRIDE; 33 virtual content::ContentBrowserClient* CreateContentBrowserClient() OVERRIDE;
34 virtual content::ContentRendererClient* 34 virtual content::ContentRendererClient*
35 CreateContentRendererClient() OVERRIDE; 35 CreateContentRendererClient() OVERRIDE;
36 36
37 scoped_ptr<content::BrowserMainRunner> browser_runner_; 37 scoped_ptr<content::BrowserMainRunner> browser_runner_;
38 chrome::ChromeContentClient chrome_content_client_; 38 chrome::ChromeContentClient chrome_content_client_;
39 39
40 DISALLOW_COPY_AND_ASSIGN(WebViewMainDelegate); 40 DISALLOW_COPY_AND_ASSIGN(AwMainDelegate);
41 }; 41 };
42 42
43 } // namespace android_webview 43 } // namespace android_webview
44 44
45 #endif // ANDROID_WEBVIEW_LIB_MAIN_WEBVIEW_MAIN_DELEGATE_H_ 45 #endif // ANDROID_WEBVIEW_LIB_MAIN_AW_MAIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « android_webview/lib/android_webview.gyp ('k') | android_webview/lib/main/aw_main_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698