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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.h

Issue 13467038: Browser Plugin: Expose frame name changes to the content API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Expose RenderViewHost::SetName to the content API Created 7 years, 8 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 virtual SiteInstance* GetSiteInstance() const OVERRIDE; 191 virtual SiteInstance* GetSiteInstance() const OVERRIDE;
192 virtual void InsertCSS(const string16& frame_xpath, 192 virtual void InsertCSS(const string16& frame_xpath,
193 const std::string& css) OVERRIDE; 193 const std::string& css) OVERRIDE;
194 virtual bool IsRenderViewLive() const OVERRIDE; 194 virtual bool IsRenderViewLive() const OVERRIDE;
195 virtual bool IsSubframe() const OVERRIDE; 195 virtual bool IsSubframe() const OVERRIDE;
196 virtual void NotifyContextMenuClosed( 196 virtual void NotifyContextMenuClosed(
197 const CustomContextMenuContext& context) OVERRIDE; 197 const CustomContextMenuContext& context) OVERRIDE;
198 virtual void NotifyMoveOrResizeStarted() OVERRIDE; 198 virtual void NotifyMoveOrResizeStarted() OVERRIDE;
199 virtual void ReloadFrame() OVERRIDE; 199 virtual void ReloadFrame() OVERRIDE;
200 virtual void SetAltErrorPageURL(const GURL& url) OVERRIDE; 200 virtual void SetAltErrorPageURL(const GURL& url) OVERRIDE;
201 virtual void SetName(const std::string& name) OVERRIDE;
201 virtual void SetWebUIProperty(const std::string& name, 202 virtual void SetWebUIProperty(const std::string& name,
202 const std::string& value) OVERRIDE; 203 const std::string& value) OVERRIDE;
203 virtual void SetZoomLevel(double level) OVERRIDE; 204 virtual void SetZoomLevel(double level) OVERRIDE;
204 virtual void Zoom(PageZoom zoom) OVERRIDE; 205 virtual void Zoom(PageZoom zoom) OVERRIDE;
205 virtual void SyncRendererPrefs() OVERRIDE; 206 virtual void SyncRendererPrefs() OVERRIDE;
206 virtual void ToggleSpeechInput() OVERRIDE; 207 virtual void ToggleSpeechInput() OVERRIDE;
207 virtual webkit_glue::WebPreferences GetWebkitPreferences() OVERRIDE; 208 virtual webkit_glue::WebPreferences GetWebkitPreferences() OVERRIDE;
208 virtual void UpdateWebkitPreferences( 209 virtual void UpdateWebkitPreferences(
209 const webkit_glue::WebPreferences& prefs) OVERRIDE; 210 const webkit_glue::WebPreferences& prefs) OVERRIDE;
210 virtual void NotifyTimezoneChange() OVERRIDE; 211 virtual void NotifyTimezoneChange() OVERRIDE;
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 bool is_playing); 553 bool is_playing);
553 void OnRequestDesktopNotificationPermission(const GURL& origin, 554 void OnRequestDesktopNotificationPermission(const GURL& origin,
554 int callback_id); 555 int callback_id);
555 void OnShowDesktopNotification( 556 void OnShowDesktopNotification(
556 const ShowDesktopNotificationHostMsgParams& params); 557 const ShowDesktopNotificationHostMsgParams& params);
557 void OnCancelDesktopNotification(int notification_id); 558 void OnCancelDesktopNotification(int notification_id);
558 void OnRunFileChooser(const FileChooserParams& params); 559 void OnRunFileChooser(const FileChooserParams& params);
559 void OnDomOperationResponse(const std::string& json_string, 560 void OnDomOperationResponse(const std::string& json_string,
560 int automation_id); 561 int automation_id);
561 void OnFrameTreeUpdated(const std::string& frame_tree); 562 void OnFrameTreeUpdated(const std::string& frame_tree);
563 void OnUpdateFrameName(int frame_id,
564 bool is_top_level,
565 const std::string& name);
562 void OnGetWindowSnapshot(const int snapshot_id); 566 void OnGetWindowSnapshot(const int snapshot_id);
563 567
564 #if defined(OS_MACOSX) || defined(OS_ANDROID) 568 #if defined(OS_MACOSX) || defined(OS_ANDROID)
565 void OnShowPopup(const ViewHostMsg_ShowPopup_Params& params); 569 void OnShowPopup(const ViewHostMsg_ShowPopup_Params& params);
566 #endif 570 #endif
567 571
568 private: 572 private:
569 friend class TestRenderViewHost; 573 friend class TestRenderViewHost;
570 574
571 // Sets whether this RenderViewHost is swapped out in favor of another, 575 // Sets whether this RenderViewHost is swapped out in favor of another,
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 699 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
696 }; 700 };
697 701
698 #if defined(COMPILER_MSVC) 702 #if defined(COMPILER_MSVC)
699 #pragma warning(pop) 703 #pragma warning(pop)
700 #endif 704 #endif
701 705
702 } // namespace content 706 } // namespace content
703 707
704 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 708 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698