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 CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 5 #ifndef CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
6 #define CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 6 #define CHROME_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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 int request_id, | 65 int request_id, |
66 const WebViewGuestDelegate::MenuItemVector* items); | 66 const WebViewGuestDelegate::MenuItemVector* items); |
67 | 67 |
68 // Sets the frame name of the guest. | 68 // Sets the frame name of the guest. |
69 void SetName(const std::string& name); | 69 void SetName(const std::string& name); |
70 | 70 |
71 // Set the zoom factor. | 71 // Set the zoom factor. |
72 void SetZoom(double zoom_factor); | 72 void SetZoom(double zoom_factor); |
73 | 73 |
74 // GuestViewBase implementation. | 74 // GuestViewBase implementation. |
75 virtual const char* GetAPINamespace() OVERRIDE; | 75 virtual const char* GetAPINamespace() const OVERRIDE; |
| 76 virtual base::string16 GetTaskName() const OVERRIDE; |
76 virtual void CreateWebContents( | 77 virtual void CreateWebContents( |
77 const std::string& embedder_extension_id, | 78 const std::string& embedder_extension_id, |
78 int embedder_render_process_id, | 79 int embedder_render_process_id, |
79 const base::DictionaryValue& create_params, | 80 const base::DictionaryValue& create_params, |
80 const WebContentsCreatedCallback& callback) OVERRIDE; | 81 const WebContentsCreatedCallback& callback) OVERRIDE; |
81 virtual void DidAttachToEmbedder() OVERRIDE; | 82 virtual void DidAttachToEmbedder() OVERRIDE; |
82 virtual void DidInitialize() OVERRIDE; | 83 virtual void DidInitialize() OVERRIDE; |
83 virtual void DidStopLoading() OVERRIDE; | 84 virtual void DidStopLoading() OVERRIDE; |
84 virtual void EmbedderDestroyed() OVERRIDE; | 85 virtual void EmbedderDestroyed() OVERRIDE; |
85 virtual void GuestDestroyed() OVERRIDE; | 86 virtual void GuestDestroyed() OVERRIDE; |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 | 352 |
352 typedef std::map<WebViewGuest*, NewWindowInfo> PendingWindowMap; | 353 typedef std::map<WebViewGuest*, NewWindowInfo> PendingWindowMap; |
353 PendingWindowMap pending_new_windows_; | 354 PendingWindowMap pending_new_windows_; |
354 | 355 |
355 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); | 356 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); |
356 }; | 357 }; |
357 | 358 |
358 } // namespace extensions | 359 } // namespace extensions |
359 | 360 |
360 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 361 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
OLD | NEW |