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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 bool LoadDataWithBaseURL(const std::string& data_url, | 88 bool LoadDataWithBaseURL(const std::string& data_url, |
89 const std::string& base_url, | 89 const std::string& base_url, |
90 const std::string& virtual_url, | 90 const std::string& virtual_url, |
91 std::string* error); | 91 std::string* error); |
92 | 92 |
93 // GuestViewBase implementation. | 93 // GuestViewBase implementation. |
94 bool CanRunInDetachedState() const override; | 94 bool CanRunInDetachedState() const override; |
95 void CreateWebContents(const base::DictionaryValue& create_params, | 95 void CreateWebContents(const base::DictionaryValue& create_params, |
96 const WebContentsCreatedCallback& callback) override; | 96 const WebContentsCreatedCallback& callback) override; |
97 void DidAttachToEmbedder() override; | 97 void DidAttachToEmbedder() override; |
| 98 void DidDropLink(const GURL& url) override; |
98 void DidInitialize(const base::DictionaryValue& create_params) override; | 99 void DidInitialize(const base::DictionaryValue& create_params) override; |
99 void DidStopLoading() override; | 100 void DidStopLoading() override; |
100 void EmbedderWillBeDestroyed() override; | 101 void EmbedderWillBeDestroyed() override; |
101 const char* GetAPINamespace() const override; | 102 const char* GetAPINamespace() const override; |
102 int GetTaskPrefix() const override; | 103 int GetTaskPrefix() const override; |
103 void GuestDestroyed() override; | 104 void GuestDestroyed() override; |
104 void GuestReady() override; | 105 void GuestReady() override; |
105 void GuestSizeChangedDueToAutoSize(const gfx::Size& old_size, | 106 void GuestSizeChangedDueToAutoSize(const gfx::Size& old_size, |
106 const gfx::Size& new_size) override; | 107 const gfx::Size& new_size) override; |
107 bool IsAutoSizeSupported() const override; | 108 bool IsAutoSizeSupported() const override; |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 // This is used to ensure pending tasks will not fire after this object is | 375 // This is used to ensure pending tasks will not fire after this object is |
375 // destroyed. | 376 // destroyed. |
376 base::WeakPtrFactory<WebViewGuest> weak_ptr_factory_; | 377 base::WeakPtrFactory<WebViewGuest> weak_ptr_factory_; |
377 | 378 |
378 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); | 379 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); |
379 }; | 380 }; |
380 | 381 |
381 } // namespace extensions | 382 } // namespace extensions |
382 | 383 |
383 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 384 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
OLD | NEW |