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

Side by Side Diff: content/shell/renderer/shell_render_view_observer.h

Issue 478483005: Add IPC benchmarking API to Blink TestRunner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Landing 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 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 CONTENT_SHELL_SHELL_RENDER_VIEW_OBSERVER_H_ 5 #ifndef CONTENT_SHELL_SHELL_RENDER_VIEW_OBSERVER_H_
6 #define CONTENT_SHELL_SHELL_RENDER_VIEW_OBSERVER_H_ 6 #define CONTENT_SHELL_SHELL_RENDER_VIEW_OBSERVER_H_
7 7
8 #include <string>
9 #include "base/memory/scoped_ptr.h"
8 #include "content/public/renderer/render_view_observer.h" 10 #include "content/public/renderer/render_view_observer.h"
9 11
10 namespace blink { 12 namespace blink {
11 class WebFrame; 13 class WebFrame;
12 } 14 }
13 15
14 namespace content { 16 namespace content {
15 17
18 class IPCEcho;
16 class RenderView; 19 class RenderView;
17 20
18 21
19 class ShellRenderViewObserver : public RenderViewObserver { 22 class ShellRenderViewObserver : public RenderViewObserver {
20 public: 23 public:
21 explicit ShellRenderViewObserver(RenderView* render_view); 24 explicit ShellRenderViewObserver(RenderView* render_view);
22 virtual ~ShellRenderViewObserver() {} 25 virtual ~ShellRenderViewObserver();
23 26
24 private: 27 private:
28 // Message handlers.
29 void OnEchoPong(int id, const std::string& body);
30
25 // RenderViewObserver implementation. 31 // RenderViewObserver implementation.
32 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
26 virtual void DidClearWindowObject(blink::WebLocalFrame* frame) OVERRIDE; 33 virtual void DidClearWindowObject(blink::WebLocalFrame* frame) OVERRIDE;
27 34
35 scoped_ptr<IPCEcho> ipc_echo_;
28 DISALLOW_COPY_AND_ASSIGN(ShellRenderViewObserver); 36 DISALLOW_COPY_AND_ASSIGN(ShellRenderViewObserver);
29 }; 37 };
30 38
31 } // namespace content 39 } // namespace content
32 40
33 #endif // CONTENT_SHELL_SHELL_RENDER_VIEW_OBSERVER_H_ 41 #endif // CONTENT_SHELL_SHELL_RENDER_VIEW_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/shell/renderer/ipc_echo.cc ('k') | content/shell/renderer/shell_render_view_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698