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

Side by Side Diff: chrome/renderer/extensions/extension_helper.h

Issue 12326052: Using the new webkit CSS change notification instead of a mutation observer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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) 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 CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_ 5 #ifndef CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_
6 #define CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_ 6 #define CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 chrome::ViewType view_type() const { return view_type_; } 65 chrome::ViewType view_type() const { return view_type_; }
66 66
67 private: 67 private:
68 // RenderViewObserver implementation. 68 // RenderViewObserver implementation.
69 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 69 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
70 virtual void DidFinishDocumentLoad(WebKit::WebFrame* frame) OVERRIDE; 70 virtual void DidFinishDocumentLoad(WebKit::WebFrame* frame) OVERRIDE;
71 virtual void DidFinishLoad(WebKit::WebFrame* frame) OVERRIDE; 71 virtual void DidFinishLoad(WebKit::WebFrame* frame) OVERRIDE;
72 virtual void DidCreateDocumentElement(WebKit::WebFrame* frame) OVERRIDE; 72 virtual void DidCreateDocumentElement(WebKit::WebFrame* frame) OVERRIDE;
73 virtual void DidStartProvisionalLoad(WebKit::WebFrame* frame) OVERRIDE; 73 virtual void DidStartProvisionalLoad(WebKit::WebFrame* frame) OVERRIDE;
74 virtual void FrameDetached(WebKit::WebFrame* frame) OVERRIDE; 74 virtual void FrameDetached(WebKit::WebFrame* frame) OVERRIDE;
75 virtual void CssMatches(
76 WebKit::WebFrame* frame,
77 const WebKit::WebVector<WebKit::WebString>& newlyMatchingSelectors,
78 const WebKit::WebVector<WebKit::WebString>& stoppedMatchingSelectors)
79 OVERRIDE;
75 virtual void DidCreateDataSource(WebKit::WebFrame* frame, 80 virtual void DidCreateDataSource(WebKit::WebFrame* frame,
76 WebKit::WebDataSource* ds) OVERRIDE; 81 WebKit::WebDataSource* ds) OVERRIDE;
77 virtual void DraggableRegionsChanged(WebKit::WebFrame* frame) OVERRIDE; 82 virtual void DraggableRegionsChanged(WebKit::WebFrame* frame) OVERRIDE;
78 83
79 void OnExtensionResponse(int request_id, bool success, 84 void OnExtensionResponse(int request_id, bool success,
80 const base::ListValue& response, 85 const base::ListValue& response,
81 const std::string& error); 86 const std::string& error);
82 void OnExtensionMessageInvoke(const std::string& extension_id, 87 void OnExtensionMessageInvoke(const std::string& extension_id,
83 const std::string& function_name, 88 const std::string& function_name,
84 const base::ListValue& args, 89 const base::ListValue& args,
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 147
143 // Id number of browser window which RenderView is attached to. 148 // Id number of browser window which RenderView is attached to.
144 int browser_window_id_; 149 int browser_window_id_;
145 150
146 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper); 151 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper);
147 }; 152 };
148 153
149 } // namespace extensions 154 } // namespace extensions
150 155
151 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_ 156 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/dispatcher.cc ('k') | chrome/renderer/extensions/extension_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698