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

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

Issue 23530029: Support webview tag when the container extension is embedded in a webUI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged Created 7 years, 3 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_CHROME_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_
6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ 6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // http://crbug.com/100411 166 // http://crbug.com/100411
167 static bool IsAdblockInstalled(); 167 static bool IsAdblockInstalled();
168 static bool IsAdblockPlusInstalled(); 168 static bool IsAdblockPlusInstalled();
169 static bool IsAdblockWithWebRequestInstalled(); 169 static bool IsAdblockWithWebRequestInstalled();
170 static bool IsAdblockPlusWithWebRequestInstalled(); 170 static bool IsAdblockPlusWithWebRequestInstalled();
171 static bool IsOtherExtensionWithWebRequestInstalled(); 171 static bool IsOtherExtensionWithWebRequestInstalled();
172 172
173 private: 173 private:
174 FRIEND_TEST_ALL_PREFIXES(ChromeContentRendererClientTest, NaClRestriction); 174 FRIEND_TEST_ALL_PREFIXES(ChromeContentRendererClientTest, NaClRestriction);
175 175
176 const extensions::Extension* GetExtension( 176 // Gets extension by the given origin, regardless of whether the extension
177 // is active in the current process.
178 const extensions::Extension* GetExtensionByOrigin(
177 const WebKit::WebSecurityOrigin& origin) const; 179 const WebKit::WebSecurityOrigin& origin) const;
178 180
179 // Returns true if the frame is navigating to an URL either into or out of an 181 // Returns true if the frame is navigating to an URL either into or out of an
180 // extension app's extent. 182 // extension app's extent.
181 bool CrossesExtensionExtents(WebKit::WebFrame* frame, 183 bool CrossesExtensionExtents(WebKit::WebFrame* frame,
182 const GURL& new_url, 184 const GURL& new_url,
183 const ExtensionSet& extensions, 185 const ExtensionSet& extensions,
184 bool is_extension_url, 186 bool is_extension_url,
185 bool is_initial_navigation); 187 bool is_initial_navigation);
186 188
(...skipping 22 matching lines...) Expand all
209 #endif 211 #endif
210 212
211 #if defined(ENABLE_PLUGINS) 213 #if defined(ENABLE_PLUGINS)
212 std::set<std::string> allowed_file_handle_origins_; 214 std::set<std::string> allowed_file_handle_origins_;
213 #endif 215 #endif
214 }; 216 };
215 217
216 } // namespace chrome 218 } // namespace chrome
217 219
218 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ 220 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/renderer/chrome_content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698