Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(298)

Side by Side Diff: chrome/browser/guest_view/web_view/web_view_guest.h

Issue 497843002: GuestViews should be able to specify task manager entries (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698