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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2510803003: Pass RapporService to content/browser/ (Closed)
Patch Set: Fix more compile errors in JNI files Created 4 years 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 (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 #include "content/browser/web_contents/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cmath> 9 #include <cmath>
10 #include <utility> 10 #include <utility>
(...skipping 12 matching lines...) Expand all
23 #include "base/single_thread_task_runner.h" 23 #include "base/single_thread_task_runner.h"
24 #include "base/strings/string16.h" 24 #include "base/strings/string16.h"
25 #include "base/strings/string_number_conversions.h" 25 #include "base/strings/string_number_conversions.h"
26 #include "base/strings/string_util.h" 26 #include "base/strings/string_util.h"
27 #include "base/strings/utf_string_conversions.h" 27 #include "base/strings/utf_string_conversions.h"
28 #include "base/threading/thread_task_runner_handle.h" 28 #include "base/threading/thread_task_runner_handle.h"
29 #include "base/time/time.h" 29 #include "base/time/time.h"
30 #include "base/trace_event/trace_event.h" 30 #include "base/trace_event/trace_event.h"
31 #include "build/build_config.h" 31 #include "build/build_config.h"
32 #include "components/mime_util/mime_util.h" 32 #include "components/mime_util/mime_util.h"
33 #include "components/rappor/public/rappor_utils.h"
33 #include "components/url_formatter/url_formatter.h" 34 #include "components/url_formatter/url_formatter.h"
34 #include "content/browser/accessibility/accessibility_mode_helper.h" 35 #include "content/browser/accessibility/accessibility_mode_helper.h"
35 #include "content/browser/accessibility/browser_accessibility_state_impl.h" 36 #include "content/browser/accessibility/browser_accessibility_state_impl.h"
36 #include "content/browser/bad_message.h" 37 #include "content/browser/bad_message.h"
37 #include "content/browser/browser_plugin/browser_plugin_embedder.h" 38 #include "content/browser/browser_plugin/browser_plugin_embedder.h"
38 #include "content/browser/browser_plugin/browser_plugin_guest.h" 39 #include "content/browser/browser_plugin/browser_plugin_guest.h"
39 #include "content/browser/child_process_security_policy_impl.h" 40 #include "content/browser/child_process_security_policy_impl.h"
40 #include "content/browser/devtools/render_frame_devtools_agent_host.h" 41 #include "content/browser/devtools/render_frame_devtools_agent_host.h"
41 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" 42 #include "content/browser/dom_storage/dom_storage_context_wrapper.h"
42 #include "content/browser/dom_storage/session_storage_namespace_impl.h" 43 #include "content/browser/dom_storage/session_storage_namespace_impl.h"
(...skipping 5234 matching lines...) Expand 10 before | Expand all | Expand 10 after
5277 JavaScriptDialogManager* dialog_manager) { 5278 JavaScriptDialogManager* dialog_manager) {
5278 dialog_manager_ = dialog_manager; 5279 dialog_manager_ = dialog_manager;
5279 } 5280 }
5280 5281
5281 void WebContentsImpl::RemoveBindingSet(const std::string& interface_name) { 5282 void WebContentsImpl::RemoveBindingSet(const std::string& interface_name) {
5282 auto it = binding_sets_.find(interface_name); 5283 auto it = binding_sets_.find(interface_name);
5283 if (it != binding_sets_.end()) 5284 if (it != binding_sets_.end())
5284 binding_sets_.erase(it); 5285 binding_sets_.erase(it);
5285 } 5286 }
5286 5287
5288 bool WebContentsImpl::AddDomainInfoToRapporSample(rappor::Sample* sample) {
5289 sample->SetStringField("Domain", ::rappor::GetDomainAndRegistrySampleFromGURL(
5290 GetLastCommittedURL()));
5291
5292 return true;
5293 }
5294
5287 } // namespace content 5295 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698