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

Side by Side Diff: chrome/renderer/chrome_render_frame_observer.h

Issue 291483010: <webview>: Move name attribute to chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@newwindow_refactor
Patch Set: Addressed John's comments Created 6 years, 7 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
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/chrome_render_frame_observer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_ 5 #ifndef CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_
6 #define CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_ 6 #define CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_
7 7
8 #include "content/public/renderer/render_frame_observer.h" 8 #include "content/public/renderer/render_frame_observer.h"
9 9
10 namespace gfx { 10 namespace gfx {
11 class Size; 11 class Size;
12 } 12 }
13 13
14 // This class holds the Chrome specific parts of RenderFrame, and has the same 14 // This class holds the Chrome specific parts of RenderFrame, and has the same
15 // lifetime. 15 // lifetime.
16 class ChromeRenderFrameObserver : public content::RenderFrameObserver { 16 class ChromeRenderFrameObserver : public content::RenderFrameObserver {
17 public: 17 public:
18 explicit ChromeRenderFrameObserver(content::RenderFrame* render_frame); 18 explicit ChromeRenderFrameObserver(content::RenderFrame* render_frame);
19 virtual ~ChromeRenderFrameObserver(); 19 virtual ~ChromeRenderFrameObserver();
20 20
21 private: 21 private:
22 // RenderFrameObserver implementation. 22 // RenderFrameObserver implementation.
23 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 23 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
24 virtual void DidChangeName(const base::string16& name) OVERRIDE;
24 25
25 // IPC handlers 26 // IPC handlers
26 void OnSetIsPrerendering(bool is_prerendering); 27 void OnSetIsPrerendering(bool is_prerendering);
27 void OnRequestThumbnailForContextNode( 28 void OnRequestThumbnailForContextNode(
28 int thumbnail_min_area_pixels, 29 int thumbnail_min_area_pixels,
29 const gfx::Size& thumbnail_max_size_pixels); 30 const gfx::Size& thumbnail_max_size_pixels);
30 void OnPrintNodeUnderContextMenu(); 31 void OnPrintNodeUnderContextMenu();
31 32
32 DISALLOW_COPY_AND_ASSIGN(ChromeRenderFrameObserver); 33 DISALLOW_COPY_AND_ASSIGN(ChromeRenderFrameObserver);
33 }; 34 };
34 35
35 #endif // CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_ 36 #endif // CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/chrome_render_frame_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698