OLD | NEW |
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 #include "android_webview/browser/aw_content_browser_client.h" | 5 #include "android_webview/browser/aw_content_browser_client.h" |
6 | 6 |
7 #include "android_webview/browser/aw_browser_context.h" | 7 #include "android_webview/browser/aw_browser_context.h" |
8 #include "android_webview/browser/aw_browser_main_parts.h" | 8 #include "android_webview/browser/aw_browser_main_parts.h" |
9 #include "android_webview/browser/aw_browser_permission_request_delegate.h" | 9 #include "android_webview/browser/aw_browser_permission_request_delegate.h" |
10 #include "android_webview/browser/aw_contents_client_bridge_base.h" | 10 #include "android_webview/browser/aw_contents_client_bridge_base.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 // TODO(sgurun) move this to its own file. | 47 // TODO(sgurun) move this to its own file. |
48 // This class filters out incoming aw_contents related IPC messages for the | 48 // This class filters out incoming aw_contents related IPC messages for the |
49 // renderer process on the IPC thread. | 49 // renderer process on the IPC thread. |
50 class AwContentsMessageFilter : public content::BrowserMessageFilter { | 50 class AwContentsMessageFilter : public content::BrowserMessageFilter { |
51 public: | 51 public: |
52 explicit AwContentsMessageFilter(int process_id); | 52 explicit AwContentsMessageFilter(int process_id); |
53 | 53 |
54 // BrowserMessageFilter methods. | 54 // BrowserMessageFilter methods. |
55 virtual void OverrideThreadForMessage( | 55 virtual void OverrideThreadForMessage( |
56 const IPC::Message& message, | 56 const IPC::Message& message, |
57 BrowserThread::ID* thread) OVERRIDE; | 57 BrowserThread::ID* thread) override; |
58 virtual bool OnMessageReceived( | 58 virtual bool OnMessageReceived( |
59 const IPC::Message& message) OVERRIDE; | 59 const IPC::Message& message) override; |
60 | 60 |
61 void OnShouldOverrideUrlLoading(int routing_id, | 61 void OnShouldOverrideUrlLoading(int routing_id, |
62 const base::string16& url, | 62 const base::string16& url, |
63 bool* ignore_navigation); | 63 bool* ignore_navigation); |
64 void OnSubFrameCreated(int parent_render_frame_id, int child_render_frame_id); | 64 void OnSubFrameCreated(int parent_render_frame_id, int child_render_frame_id); |
65 | 65 |
66 private: | 66 private: |
67 virtual ~AwContentsMessageFilter(); | 67 virtual ~AwContentsMessageFilter(); |
68 | 68 |
69 int process_id_; | 69 int process_id_; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 AwContentsIoThreadClient::SubFrameCreated( | 118 AwContentsIoThreadClient::SubFrameCreated( |
119 process_id_, parent_render_frame_id, child_render_frame_id); | 119 process_id_, parent_render_frame_id, child_render_frame_id); |
120 } | 120 } |
121 | 121 |
122 class AwAccessTokenStore : public content::AccessTokenStore { | 122 class AwAccessTokenStore : public content::AccessTokenStore { |
123 public: | 123 public: |
124 AwAccessTokenStore() { } | 124 AwAccessTokenStore() { } |
125 | 125 |
126 // content::AccessTokenStore implementation | 126 // content::AccessTokenStore implementation |
127 virtual void LoadAccessTokens( | 127 virtual void LoadAccessTokens( |
128 const LoadAccessTokensCallbackType& request) OVERRIDE { | 128 const LoadAccessTokensCallbackType& request) override { |
129 AccessTokenStore::AccessTokenSet access_token_set; | 129 AccessTokenStore::AccessTokenSet access_token_set; |
130 // AccessTokenSet and net::URLRequestContextGetter not used on Android, | 130 // AccessTokenSet and net::URLRequestContextGetter not used on Android, |
131 // but Run needs to be called to finish the geolocation setup. | 131 // but Run needs to be called to finish the geolocation setup. |
132 request.Run(access_token_set, NULL); | 132 request.Run(access_token_set, NULL); |
133 } | 133 } |
134 virtual void SaveAccessToken(const GURL& server_url, | 134 virtual void SaveAccessToken(const GURL& server_url, |
135 const base::string16& access_token) OVERRIDE { } | 135 const base::string16& access_token) override { } |
136 | 136 |
137 private: | 137 private: |
138 virtual ~AwAccessTokenStore() { } | 138 virtual ~AwAccessTokenStore() { } |
139 | 139 |
140 DISALLOW_COPY_AND_ASSIGN(AwAccessTokenStore); | 140 DISALLOW_COPY_AND_ASSIGN(AwAccessTokenStore); |
141 }; | 141 }; |
142 | 142 |
143 void CancelProtectedMediaIdentifierPermissionRequests( | 143 void CancelProtectedMediaIdentifierPermissionRequests( |
144 int render_process_id, | 144 int render_process_id, |
145 int render_view_id, | 145 int render_view_id, |
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
576 return native_factory_->CreateExternalVideoSurfaceContainer(web_contents); | 576 return native_factory_->CreateExternalVideoSurfaceContainer(web_contents); |
577 } | 577 } |
578 #endif | 578 #endif |
579 | 579 |
580 content::DevToolsManagerDelegate* | 580 content::DevToolsManagerDelegate* |
581 AwContentBrowserClient::GetDevToolsManagerDelegate() { | 581 AwContentBrowserClient::GetDevToolsManagerDelegate() { |
582 return new AwDevToolsManagerDelegate(); | 582 return new AwDevToolsManagerDelegate(); |
583 } | 583 } |
584 | 584 |
585 } // namespace android_webview | 585 } // namespace android_webview |
OLD | NEW |