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

Unified Diff: chrome/browser/web_resource/chrome_web_resource_service.h

Issue 1291543004: Inject JSON parsing in WebResource as a callback rather than inheritance (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webResources1
Patch Set: Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/web_resource/chrome_web_resource_service.h
diff --git a/chrome/browser/web_resource/chrome_web_resource_service.h b/chrome/browser/web_resource/chrome_web_resource_service.h
deleted file mode 100644
index 4d84be65c016c24e91a39e5ed82848a5ee76101d..0000000000000000000000000000000000000000
--- a/chrome/browser/web_resource/chrome_web_resource_service.h
+++ /dev/null
@@ -1,34 +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 CHROME_BROWSER_WEB_RESOURCE_CHROME_WEB_RESOURCE_SERVICE_H_
-#define CHROME_BROWSER_WEB_RESOURCE_CHROME_WEB_RESOURCE_SERVICE_H_
-
-#include "base/macros.h"
-#include "components/web_resource/web_resource_service.h"
-
-// Chrome implementation of WebResourceService.
-// ChromeWebResourceService safely parses JSON out of process.
-class ChromeWebResourceService : public web_resource::WebResourceService {
- public:
- ChromeWebResourceService(PrefService* prefs,
- const GURL& web_resource_server,
- bool apply_locale_to_url,
- const char* last_update_time_pref_name,
- int start_fetch_delay_ms,
- int cache_update_delay_ms);
-
- protected:
- ~ChromeWebResourceService() override;
-
- private:
- // WebResourceService implementation:
- void ParseJSON(const std::string& data,
- const SuccessCallback& success_callback,
- const ErrorCallback& error_callback) override;
-
- DISALLOW_COPY_AND_ASSIGN(ChromeWebResourceService);
-};
-
-#endif // CHROME_BROWSER_WEB_RESOURCE_CHROME_WEB_RESOURCE_SERVICE_H_
« no previous file with comments | « chrome/browser/plugins/plugins_resource_service.cc ('k') | chrome/browser/web_resource/chrome_web_resource_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698