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

Side by Side Diff: chrome/browser/ui/webui/bookmarks_ui.h

Issue 10272004: Move RefCountedMemory class to base namespace. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BOOKMARKS_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_BOOKMARKS_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_BOOKMARKS_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_BOOKMARKS_UI_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" 11 #include "chrome/browser/ui/webui/chrome_url_data_manager.h"
12 #include "content/public/browser/web_ui_controller.h" 12 #include "content/public/browser/web_ui_controller.h"
13 13
14 namespace base {
14 class RefCountedMemory; 15 class RefCountedMemory;
16 }
15 17
16 // This class provides the source for chrome://bookmarks/ 18 // This class provides the source for chrome://bookmarks/
17 class BookmarksUIHTMLSource : public ChromeURLDataManager::DataSource { 19 class BookmarksUIHTMLSource : public ChromeURLDataManager::DataSource {
18 public: 20 public:
19 BookmarksUIHTMLSource(); 21 BookmarksUIHTMLSource();
20 22
21 // Called when the network layer has requested a resource underneath 23 // Called when the network layer has requested a resource underneath
22 // the path we registered. 24 // the path we registered.
23 virtual void StartDataRequest(const std::string& path, 25 virtual void StartDataRequest(const std::string& path,
24 bool is_incognito, 26 bool is_incognito,
25 int request_id) OVERRIDE; 27 int request_id) OVERRIDE;
26 virtual std::string GetMimeType(const std::string& path) const OVERRIDE; 28 virtual std::string GetMimeType(const std::string& path) const OVERRIDE;
27 29
28 private: 30 private:
29 virtual ~BookmarksUIHTMLSource(); 31 virtual ~BookmarksUIHTMLSource();
30 32
31 DISALLOW_COPY_AND_ASSIGN(BookmarksUIHTMLSource); 33 DISALLOW_COPY_AND_ASSIGN(BookmarksUIHTMLSource);
32 }; 34 };
33 35
34 // This class is used to hook up chrome://bookmarks/ which in turn gets 36 // This class is used to hook up chrome://bookmarks/ which in turn gets
35 // overridden by an extension. 37 // overridden by an extension.
36 class BookmarksUI : public content::WebUIController { 38 class BookmarksUI : public content::WebUIController {
37 public: 39 public:
38 explicit BookmarksUI(content::WebUI* web_ui); 40 explicit BookmarksUI(content::WebUI* web_ui);
39 41
40 static RefCountedMemory* GetFaviconResourceBytes(); 42 static base::RefCountedMemory* GetFaviconResourceBytes();
41 43
42 private: 44 private:
43 DISALLOW_COPY_AND_ASSIGN(BookmarksUI); 45 DISALLOW_COPY_AND_ASSIGN(BookmarksUI);
44 }; 46 };
45 47
46 #endif // CHROME_BROWSER_UI_WEBUI_BOOKMARKS_UI_H_ 48 #endif // CHROME_BROWSER_UI_WEBUI_BOOKMARKS_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/download/background_theme.mm ('k') | chrome/browser/ui/webui/bookmarks_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698