| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_HTML_SOURCE_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_HTML_SOURCE_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_HTML_SOURCE_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_HTML_SOURCE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" | 12 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" |
| 13 | 13 |
| 14 class SyncInternalsHTMLSource : public ChromeURLDataManager::DataSource { | 14 class SyncInternalsHTMLSource : public ChromeURLDataManager::DataSource { |
| 15 public: | 15 public: |
| 16 SyncInternalsHTMLSource(); | 16 SyncInternalsHTMLSource(); |
| 17 | 17 |
| 18 // ChromeURLDataManager::DataSource implementation. | 18 // ChromeURLDataManager::DataSource implementation. |
| 19 virtual void StartDataRequest(const std::string& path, | 19 virtual void StartDataRequest(const std::string& path, |
| 20 bool is_off_the_record, | 20 bool is_incognito, |
| 21 int request_id); | 21 int request_id); |
| 22 virtual std::string GetMimeType(const std::string& path) const; | 22 virtual std::string GetMimeType(const std::string& path) const; |
| 23 | 23 |
| 24 protected: | 24 protected: |
| 25 virtual ~SyncInternalsHTMLSource(); | 25 virtual ~SyncInternalsHTMLSource(); |
| 26 | 26 |
| 27 private: | 27 private: |
| 28 DISALLOW_COPY_AND_ASSIGN(SyncInternalsHTMLSource); | 28 DISALLOW_COPY_AND_ASSIGN(SyncInternalsHTMLSource); |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_HTML_SOURCE_H_ | 31 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_INTERNALS_HTML_SOURCE_H_ |
| OLD | NEW |