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

Side by Side Diff: content/browser/devtools/renderer_overrides_handler.cc

Issue 18868005: content: Migrate from googleurl/ includes to url/ ones. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #include "content/browser/devtools/renderer_overrides_handler.h" 5 #include "content/browser/devtools/renderer_overrides_handler.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/bind_helpers.h" 11 #include "base/bind_helpers.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "content/browser/child_process_security_policy_impl.h" 15 #include "content/browser/child_process_security_policy_impl.h"
16 #include "content/browser/devtools/devtools_protocol_constants.h" 16 #include "content/browser/devtools/devtools_protocol_constants.h"
17 #include "content/browser/renderer_host/render_view_host_delegate.h" 17 #include "content/browser/renderer_host/render_view_host_delegate.h"
18 #include "content/public/browser/devtools_agent_host.h" 18 #include "content/public/browser/devtools_agent_host.h"
19 #include "content/public/browser/javascript_dialog_manager.h" 19 #include "content/public/browser/javascript_dialog_manager.h"
20 #include "content/public/browser/navigation_controller.h" 20 #include "content/public/browser/navigation_controller.h"
21 #include "content/public/browser/render_process_host.h" 21 #include "content/public/browser/render_process_host.h"
22 #include "content/public/browser/render_view_host.h" 22 #include "content/public/browser/render_view_host.h"
23 #include "content/public/browser/render_widget_host_view.h" 23 #include "content/public/browser/render_widget_host_view.h"
24 #include "content/public/browser/web_contents.h" 24 #include "content/public/browser/web_contents.h"
25 #include "content/public/browser/web_contents_delegate.h" 25 #include "content/public/browser/web_contents_delegate.h"
26 #include "content/public/common/page_transition_types.h" 26 #include "content/public/common/page_transition_types.h"
27 #include "content/public/common/referrer.h" 27 #include "content/public/common/referrer.h"
28 #include "googleurl/src/gurl.h"
29 #include "ui/snapshot/snapshot.h" 28 #include "ui/snapshot/snapshot.h"
29 #include "url/gurl.h"
30 30
31 namespace content { 31 namespace content {
32 32
33 RendererOverridesHandler::RendererOverridesHandler(DevToolsAgentHost* agent) 33 RendererOverridesHandler::RendererOverridesHandler(DevToolsAgentHost* agent)
34 : agent_(agent) { 34 : agent_(agent) {
35 RegisterCommandHandler( 35 RegisterCommandHandler(
36 devtools::DOM::setFileInputFiles::kName, 36 devtools::DOM::setFileInputFiles::kName,
37 base::Bind( 37 base::Bind(
38 &RendererOverridesHandler::GrantPermissionsForSetFileInputFiles, 38 &RendererOverridesHandler::GrantPermissionsForSetFileInputFiles,
39 base::Unretained(this))); 39 base::Unretained(this)));
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 snapshot_bounds)) 159 snapshot_bounds))
160 return false; 160 return false;
161 161
162 return base::Base64Encode(base::StringPiece( 162 return base::Base64Encode(base::StringPiece(
163 reinterpret_cast<char*>(&*png.begin()), 163 reinterpret_cast<char*>(&*png.begin()),
164 png.size()), 164 png.size()),
165 base_64_data); 165 base_64_data);
166 } 166 }
167 167
168 } // namespace content 168 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/devtools/devtools_http_handler_impl.cc ('k') | content/browser/dom_storage/dom_storage_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698