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

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

Issue 2901333003: [WebView] Flatten lib/main to lib (Closed)
Patch Set: nits Created 3 years, 7 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
« no previous file with comments | « android_webview/lib/aw_main_delegate.cc ('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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ANDROID_WEBVIEW_LIB_MAIN_AW_MAIN_DELEGATE_H_
6 #define ANDROID_WEBVIEW_LIB_MAIN_AW_MAIN_DELEGATE_H_
7
8 #include <memory>
9
10 #include "android_webview/common/aw_content_client.h"
11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h"
13 #include "content/public/app/content_main_delegate.h"
14
15 namespace content {
16 class BrowserMainRunner;
17 }
18
19 namespace safe_browsing {
20 class SafeBrowsingApiHandler;
21 }
22
23 namespace android_webview {
24
25 class AwContentBrowserClient;
26 class AwContentGpuClient;
27 class AwContentRendererClient;
28
29 // Android WebView implementation of ContentMainDelegate. The methods in
30 // this class runs per process, (browser and renderer) so when making changes
31 // make sure to properly conditionalize for browser vs. renderer wherever
32 // needed.
33 class AwMainDelegate : public content::ContentMainDelegate {
34 public:
35 AwMainDelegate();
36 ~AwMainDelegate() override;
37
38 private:
39 // content::ContentMainDelegate implementation:
40 bool BasicStartupComplete(int* exit_code) override;
41 void PreSandboxStartup() override;
42 int RunProcess(
43 const std::string& process_type,
44 const content::MainFunctionParams& main_function_params) override;
45 void ProcessExiting(const std::string& process_type) override;
46 content::ContentBrowserClient* CreateContentBrowserClient() override;
47 content::ContentGpuClient* CreateContentGpuClient() override;
48 content::ContentRendererClient* CreateContentRendererClient() override;
49
50 std::unique_ptr<content::BrowserMainRunner> browser_runner_;
51 AwContentClient content_client_;
52 std::unique_ptr<AwContentBrowserClient> content_browser_client_;
53 std::unique_ptr<AwContentGpuClient> content_gpu_client_;
54 std::unique_ptr<AwContentRendererClient> content_renderer_client_;
55 std::unique_ptr<safe_browsing::SafeBrowsingApiHandler>
56 safe_browsing_api_handler_;
57
58 DISALLOW_COPY_AND_ASSIGN(AwMainDelegate);
59 };
60
61 } // namespace android_webview
62
63 #endif // ANDROID_WEBVIEW_LIB_MAIN_AW_MAIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « android_webview/lib/aw_main_delegate.cc ('k') | android_webview/lib/main/aw_main_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698