| 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 return delegate.Pass(); | 261 return delegate.Pass(); |
| 262 } | 262 } |
| 263 | 263 |
| 264 private: | 264 private: |
| 265 friend class WebViewPermissionHelper; | 265 friend class WebViewPermissionHelper; |
| 266 | 266 |
| 267 explicit WebViewGuest(content::WebContents* owner_web_contents); | 267 explicit WebViewGuest(content::WebContents* owner_web_contents); |
| 268 | 268 |
| 269 ~WebViewGuest() override; | 269 ~WebViewGuest() override; |
| 270 | 270 |
| 271 void AttachWebViewHelpers(content::WebContents* contents); | |
| 272 | |
| 273 void ClearDataInternal(const base::Time remove_since, | 271 void ClearDataInternal(const base::Time remove_since, |
| 274 uint32 removal_mask, | 272 uint32 removal_mask, |
| 275 const base::Closure& callback); | 273 const base::Closure& callback); |
| 276 | 274 |
| 277 void OnWebViewNewWindowResponse(int new_window_instance_id, | 275 void OnWebViewNewWindowResponse(int new_window_instance_id, |
| 278 bool allow, | 276 bool allow, |
| 279 const std::string& user_input); | 277 const std::string& user_input); |
| 280 | 278 |
| 281 void OnFullscreenPermissionDecided(bool allowed, | 279 void OnFullscreenPermissionDecided(bool allowed, |
| 282 const std::string& user_input); | 280 const std::string& user_input); |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 // This is used to ensure pending tasks will not fire after this object is | 407 // This is used to ensure pending tasks will not fire after this object is |
| 410 // destroyed. | 408 // destroyed. |
| 411 base::WeakPtrFactory<WebViewGuest> weak_ptr_factory_; | 409 base::WeakPtrFactory<WebViewGuest> weak_ptr_factory_; |
| 412 | 410 |
| 413 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); | 411 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); |
| 414 }; | 412 }; |
| 415 | 413 |
| 416 } // namespace extensions | 414 } // namespace extensions |
| 417 | 415 |
| 418 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 416 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
| OLD | NEW |