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

Unified Diff: chrome/browser/dom_ui/shared_resources_data_source.h

Issue 2817026: Move the files in resources/shared/ into resources.pak (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Rebase after tony's commit Created 10 years, 6 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/dom_ui/shared_resources_data_source.h
diff --git a/chrome/browser/dom_ui/shared_resources_data_source.h b/chrome/browser/dom_ui/shared_resources_data_source.h
new file mode 100644
index 0000000000000000000000000000000000000000..0dfe83a2b5f5600c84c255781a1134c86b316b65
--- /dev/null
+++ b/chrome/browser/dom_ui/shared_resources_data_source.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2010 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_DOM_UI_SHARED_RESOURCES_DATA_SOURCE_H_
+#define CHROME_BROWSER_DOM_UI_SHARED_RESOURCES_DATA_SOURCE_H_
+
+#include "chrome/browser/dom_ui/chrome_url_data_manager.h"
+
+class GURL;
+class URLRequest;
+class URLRequestJob;
+
+// A DataSource for chrome://resources/ URLs.
+class SharedResourcesDataSource : public ChromeURLDataManager::DataSource {
+ public:
+ // Registers an instance of this data source with the ChromeUrlDataManager.
+ static void Register();
+
+ // Overridden from ChromeURLDataManager::DataSource:
+ virtual void StartDataRequest(const std::string& path,
+ bool is_off_the_record,
+ int request_id);
+ virtual std::string GetMimeType(const std::string&) const;
+
+ private:
+ SharedResourcesDataSource();
+ ~SharedResourcesDataSource();
+
+ DISALLOW_COPY_AND_ASSIGN(SharedResourcesDataSource);
+};
+
+#endif // CHROME_BROWSER_DOM_UI_SHARED_RESOURCES_DATA_SOURCE_H_
« no previous file with comments | « chrome/browser/dom_ui/chrome_url_data_manager.cc ('k') | chrome/browser/dom_ui/shared_resources_data_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698