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

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

Issue 2635693002: [WebView] initial webview-side implementation of safebrowsing (Closed)
Patch Set: rename lock, add crbug comment Created 3 years, 11 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
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_AW_MAIN_DELEGATE_H_ 5 #ifndef ANDROID_WEBVIEW_LIB_MAIN_AW_MAIN_DELEGATE_H_
6 #define ANDROID_WEBVIEW_LIB_MAIN_AW_MAIN_DELEGATE_H_ 6 #define ANDROID_WEBVIEW_LIB_MAIN_AW_MAIN_DELEGATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "android_webview/browser/jni_dependency_factory.h" 10 #include "android_webview/browser/jni_dependency_factory.h"
11 #include "android_webview/common/aw_content_client.h" 11 #include "android_webview/common/aw_content_client.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "content/public/app/content_main_delegate.h" 14 #include "content/public/app/content_main_delegate.h"
15 15
16 namespace content { 16 namespace content {
17 class BrowserMainRunner; 17 class BrowserMainRunner;
18 } 18 }
19 19
20 namespace safe_browsing {
21 class SafeBrowsingApiHandler;
22 }
23
20 namespace android_webview { 24 namespace android_webview {
21 25
22 class AwContentBrowserClient; 26 class AwContentBrowserClient;
23 class AwContentGpuClient; 27 class AwContentGpuClient;
24 class AwContentRendererClient; 28 class AwContentRendererClient;
25 29
26 // Android WebView implementation of ContentMainDelegate. The methods in 30 // Android WebView implementation of ContentMainDelegate. The methods in
27 // this class runs per process, (browser and renderer) so when making changes 31 // this class runs per process, (browser and renderer) so when making changes
28 // make sure to properly conditionalize for browser vs. renderer wherever 32 // make sure to properly conditionalize for browser vs. renderer wherever
29 // needed. 33 // needed.
(...skipping 21 matching lines...) Expand all
51 content::WebContentsViewDelegate* CreateViewDelegate( 55 content::WebContentsViewDelegate* CreateViewDelegate(
52 content::WebContents* web_contents) override; 56 content::WebContents* web_contents) override;
53 AwWebPreferencesPopulater* CreateWebPreferencesPopulater() override; 57 AwWebPreferencesPopulater* CreateWebPreferencesPopulater() override;
54 AwLocaleManager* CreateAwLocaleManager() override; 58 AwLocaleManager* CreateAwLocaleManager() override;
55 59
56 std::unique_ptr<content::BrowserMainRunner> browser_runner_; 60 std::unique_ptr<content::BrowserMainRunner> browser_runner_;
57 AwContentClient content_client_; 61 AwContentClient content_client_;
58 std::unique_ptr<AwContentBrowserClient> content_browser_client_; 62 std::unique_ptr<AwContentBrowserClient> content_browser_client_;
59 std::unique_ptr<AwContentGpuClient> content_gpu_client_; 63 std::unique_ptr<AwContentGpuClient> content_gpu_client_;
60 std::unique_ptr<AwContentRendererClient> content_renderer_client_; 64 std::unique_ptr<AwContentRendererClient> content_renderer_client_;
65 std::unique_ptr<safe_browsing::SafeBrowsingApiHandler>
66 safe_browsing_api_handler_;
61 67
62 DISALLOW_COPY_AND_ASSIGN(AwMainDelegate); 68 DISALLOW_COPY_AND_ASSIGN(AwMainDelegate);
63 }; 69 };
64 70
65 } // namespace android_webview 71 } // namespace android_webview
66 72
67 #endif // ANDROID_WEBVIEW_LIB_MAIN_AW_MAIN_DELEGATE_H_ 73 #endif // ANDROID_WEBVIEW_LIB_MAIN_AW_MAIN_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698