| 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_EXTENSIONS_EXTENSIONS_UI_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSIONS_UI_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSIONS_UI_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSIONS_UI_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 bool incognito; | 42 bool incognito; |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 class ExtensionsUIHTMLSource : public ChromeURLDataManager::DataSource { | 45 class ExtensionsUIHTMLSource : public ChromeURLDataManager::DataSource { |
| 46 public: | 46 public: |
| 47 ExtensionsUIHTMLSource(); | 47 ExtensionsUIHTMLSource(); |
| 48 | 48 |
| 49 // Called when the network layer has requested a resource underneath | 49 // Called when the network layer has requested a resource underneath |
| 50 // the path we registered. | 50 // the path we registered. |
| 51 virtual void StartDataRequest(const std::string& path, | 51 virtual void StartDataRequest(const std::string& path, |
| 52 bool is_off_the_record, | 52 bool is_incognito, |
| 53 int request_id); | 53 int request_id); |
| 54 virtual std::string GetMimeType(const std::string&) const; | 54 virtual std::string GetMimeType(const std::string&) const; |
| 55 | 55 |
| 56 private: | 56 private: |
| 57 ~ExtensionsUIHTMLSource() {} | 57 ~ExtensionsUIHTMLSource() {} |
| 58 | 58 |
| 59 DISALLOW_COPY_AND_ASSIGN(ExtensionsUIHTMLSource); | 59 DISALLOW_COPY_AND_ASSIGN(ExtensionsUIHTMLSource); |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 // The handler for JavaScript messages related to the "extensions" view. | 62 // The handler for JavaScript messages related to the "extensions" view. |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 | 215 |
| 216 static RefCountedMemory* GetFaviconResourceBytes(); | 216 static RefCountedMemory* GetFaviconResourceBytes(); |
| 217 | 217 |
| 218 static void RegisterUserPrefs(PrefService* prefs); | 218 static void RegisterUserPrefs(PrefService* prefs); |
| 219 | 219 |
| 220 private: | 220 private: |
| 221 DISALLOW_COPY_AND_ASSIGN(ExtensionsUI); | 221 DISALLOW_COPY_AND_ASSIGN(ExtensionsUI); |
| 222 }; | 222 }; |
| 223 | 223 |
| 224 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_UI_H_ | 224 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_UI_H_ |
| OLD | NEW |