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

Side by Side Diff: content/renderer/render_view_observer.h

Issue 6873040: Move the content settings code out of RenderView, since it belongs in the Chrome layer. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_RENDERER_RENDER_VIEW_OBSERVER_H_ 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_OBSERVER_H_
6 #define CONTENT_RENDERER_RENDER_VIEW_OBSERVER_H_ 6 #define CONTENT_RENDERER_RENDER_VIEW_OBSERVER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "ipc/ipc_channel.h" 10 #include "ipc/ipc_channel.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 virtual void DidCreateDataSource(WebKit::WebFrame* frame, 59 virtual void DidCreateDataSource(WebKit::WebFrame* frame,
60 WebKit::WebDataSource* ds) {} 60 WebKit::WebDataSource* ds) {}
61 virtual void PrintPage(WebKit::WebFrame* frame) {} 61 virtual void PrintPage(WebKit::WebFrame* frame) {}
62 virtual void LogCrossFramePropertyAccess( 62 virtual void LogCrossFramePropertyAccess(
63 WebKit::WebFrame* frame, 63 WebKit::WebFrame* frame,
64 WebKit::WebFrame* target, 64 WebKit::WebFrame* target,
65 bool cross_origin, 65 bool cross_origin,
66 const WebKit::WebString& property_name, 66 const WebKit::WebString& property_name,
67 unsigned long long event_id) {} 67 unsigned long long event_id) {}
68 virtual void FocusedNodeChanged(const WebKit::WebNode& node) {} 68 virtual void FocusedNodeChanged(const WebKit::WebNode& node) {}
69 // If any observer returns false, then the request will be denied.
70 virtual bool AllowImages(WebKit::WebFrame* frame, bool enabled_per_settings);
71 virtual bool AllowPlugins(WebKit::WebFrame* frame, bool enabled_per_settings);
72 virtual bool AllowScript(WebKit::WebFrame* frame, bool enabled_per_settings);
73 virtual void DidNotAllowPlugins(WebKit::WebFrame* frame) {}
74 virtual void DidNotAllowScript(WebKit::WebFrame* frame) {}
69 75
70 // These match the RenderView methods. 76 // These match the RenderView methods.
71 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {} 77 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {}
72 78
73 protected: 79 protected:
74 explicit RenderViewObserver(RenderView* render_view); 80 explicit RenderViewObserver(RenderView* render_view);
75 virtual ~RenderViewObserver(); 81 virtual ~RenderViewObserver();
76 82
77 // IPC::Channel::Listener implementation. 83 // IPC::Channel::Listener implementation.
78 virtual bool OnMessageReceived(const IPC::Message& message); 84 virtual bool OnMessageReceived(const IPC::Message& message);
(...skipping 10 matching lines...) Expand all
89 void set_render_view(RenderView* rv) { render_view_ = rv; } 95 void set_render_view(RenderView* rv) { render_view_ = rv; }
90 96
91 RenderView* render_view_; 97 RenderView* render_view_;
92 // The routing ID of the associated RenderView. 98 // The routing ID of the associated RenderView.
93 int routing_id_; 99 int routing_id_;
94 100
95 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); 101 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver);
96 }; 102 };
97 103
98 #endif // CONTENT_RENDERER_RENDER_VIEW_OBSERVER_H_ 104 #endif // CONTENT_RENDERER_RENDER_VIEW_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698