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

Unified Diff: components/rappor/rappor_utils.h

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 side-by-side diff with in-line comments
Download patch
Index: components/rappor/rappor_utils.h
diff --git a/components/rappor/rappor_utils.h b/components/rappor/rappor_utils.h
deleted file mode 100644
index f8600d6bcf5b46d7e54f572dff6790631d673a11..0000000000000000000000000000000000000000
--- a/components/rappor/rappor_utils.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_RAPPOR_RAPPOR_UTILS_H_
-#define COMPONENTS_RAPPOR_RAPPOR_UTILS_H_
-
-#include <string>
-
-#include "components/rappor/rappor_service.h"
-
-class GURL;
-
-namespace rappor {
-
-class RapporService;
-
-// Records a string to a Rappor metric.
-// If |rappor_service| is NULL, this call does nothing.
-void SampleString(RapporService* rappor_service,
- const std::string& metric,
- RapporType type,
- const std::string& sample);
-
-// Extract the domain and registry for a sample from a GURL.
-// For file:// urls this will just return "file://" and for other special
-// schemes like chrome-extension will return the scheme and host.
-std::string GetDomainAndRegistrySampleFromGURL(const GURL& gurl);
-
-// Records the domain and registry of a url to a Rappor metric.
-// If |rappor_service| is NULL, this call does nothing.
-void SampleDomainAndRegistryFromGURL(RapporService* rappor_service,
- const std::string& metric,
- const GURL& gurl);
-
-// Returns NULL if there is no default service.
-RapporService* GetDefaultService();
-
-void SetDefaultServiceAccessor(RapporService* (*getDefaultService)());
-
-} // namespace rappor
-
-#endif // COMPONENTS_RAPPOR_RAPPOR_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698