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

Side by Side Diff: extensions/shell/renderer/shell_content_renderer_client.cc

Issue 562603002: Move PageTransition from //content/public/common to //ui/base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "extensions/shell/renderer/shell_content_renderer_client.h" 5 #include "extensions/shell/renderer/shell_content_renderer_client.h"
6 6
7 #include "content/public/renderer/render_frame.h" 7 #include "content/public/renderer/render_frame.h"
8 #include "content/public/renderer/render_frame_observer.h" 8 #include "content/public/renderer/render_frame_observer.h"
9 #include "content/public/renderer/render_frame_observer_tracker.h" 9 #include "content/public/renderer/render_frame_observer_tracker.h"
10 #include "content/public/renderer/render_thread.h" 10 #include "content/public/renderer/render_thread.h"
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 blink::WebPlugin* ShellContentRendererClient::CreatePluginReplacement( 125 blink::WebPlugin* ShellContentRendererClient::CreatePluginReplacement(
126 content::RenderFrame* render_frame, 126 content::RenderFrame* render_frame,
127 const base::FilePath& plugin_path) { 127 const base::FilePath& plugin_path) {
128 // Don't provide a custom "failed to load" plugin. 128 // Don't provide a custom "failed to load" plugin.
129 return NULL; 129 return NULL;
130 } 130 }
131 131
132 bool ShellContentRendererClient::WillSendRequest( 132 bool ShellContentRendererClient::WillSendRequest(
133 blink::WebFrame* frame, 133 blink::WebFrame* frame,
134 content::PageTransition transition_type, 134 ui::PageTransition transition_type,
135 const GURL& url, 135 const GURL& url,
136 const GURL& first_party_for_cookies, 136 const GURL& first_party_for_cookies,
137 GURL* new_url) { 137 GURL* new_url) {
138 // TODO(jamescook): Cause an error for bad extension scheme requests? 138 // TODO(jamescook): Cause an error for bad extension scheme requests?
139 return false; 139 return false;
140 } 140 }
141 141
142 void ShellContentRendererClient::DidCreateScriptContext( 142 void ShellContentRendererClient::DidCreateScriptContext(
143 WebFrame* frame, 143 WebFrame* frame,
144 v8::Handle<v8::Context> context, 144 v8::Handle<v8::Context> context,
(...skipping 30 matching lines...) Expand all
175 } 175 }
176 176
177 content::BrowserPluginDelegate* 177 content::BrowserPluginDelegate*
178 ShellContentRendererClient::CreateBrowserPluginDelegate( 178 ShellContentRendererClient::CreateBrowserPluginDelegate(
179 content::RenderFrame* render_frame, 179 content::RenderFrame* render_frame,
180 const std::string& mime_type) { 180 const std::string& mime_type) {
181 return new extensions::GuestViewContainer(render_frame, mime_type); 181 return new extensions::GuestViewContainer(render_frame, mime_type);
182 } 182 }
183 183
184 } // namespace extensions 184 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/shell/renderer/shell_content_renderer_client.h ('k') | sync/protocol/sync_enums.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698