OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 return delegate.Pass(); | 258 return delegate.Pass(); |
259 } | 259 } |
260 | 260 |
261 private: | 261 private: |
262 friend class WebViewPermissionHelper; | 262 friend class WebViewPermissionHelper; |
263 | 263 |
264 explicit WebViewGuest(content::WebContents* owner_web_contents); | 264 explicit WebViewGuest(content::WebContents* owner_web_contents); |
265 | 265 |
266 ~WebViewGuest() override; | 266 ~WebViewGuest() override; |
267 | 267 |
268 void AttachWebViewHelpers(content::WebContents* contents); | |
269 | |
270 void ClearDataInternal(const base::Time remove_since, | 268 void ClearDataInternal(const base::Time remove_since, |
271 uint32 removal_mask, | 269 uint32 removal_mask, |
272 const base::Closure& callback); | 270 const base::Closure& callback); |
273 | 271 |
274 void OnWebViewNewWindowResponse(int new_window_instance_id, | 272 void OnWebViewNewWindowResponse(int new_window_instance_id, |
275 bool allow, | 273 bool allow, |
276 const std::string& user_input); | 274 const std::string& user_input); |
277 | 275 |
278 void OnFullscreenPermissionDecided(bool allowed, | 276 void OnFullscreenPermissionDecided(bool allowed, |
279 const std::string& user_input); | 277 const std::string& user_input); |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 // This is used to ensure pending tasks will not fire after this object is | 404 // This is used to ensure pending tasks will not fire after this object is |
407 // destroyed. | 405 // destroyed. |
408 base::WeakPtrFactory<WebViewGuest> weak_ptr_factory_; | 406 base::WeakPtrFactory<WebViewGuest> weak_ptr_factory_; |
409 | 407 |
410 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); | 408 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); |
411 }; | 409 }; |
412 | 410 |
413 } // namespace extensions | 411 } // namespace extensions |
414 | 412 |
415 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 413 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
OLD | NEW |