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

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

Issue 629463003: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[w-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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_CHROME_WEB_UI_CONTROLLER_FACTORY_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROME_WEB_UI_CONTROLLER_FACTORY_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROME_WEB_UI_CONTROLLER_FACTORY_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROME_WEB_UI_CONTROLLER_FACTORY_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "components/favicon_base/favicon_callback.h" 10 #include "components/favicon_base/favicon_callback.h"
11 #include "content/public/browser/web_ui.h" 11 #include "content/public/browser/web_ui.h"
12 #include "content/public/browser/web_ui_controller_factory.h" 12 #include "content/public/browser/web_ui_controller_factory.h"
13 #include "ui/base/layout.h" 13 #include "ui/base/layout.h"
14 14
15 class Profile; 15 class Profile;
16 16
17 namespace base { 17 namespace base {
18 class RefCountedMemory; 18 class RefCountedMemory;
19 } 19 }
20 20
21 class ChromeWebUIControllerFactory : public content::WebUIControllerFactory { 21 class ChromeWebUIControllerFactory : public content::WebUIControllerFactory {
22 public: 22 public:
23 virtual content::WebUI::TypeID GetWebUIType( 23 virtual content::WebUI::TypeID GetWebUIType(
24 content::BrowserContext* browser_context, 24 content::BrowserContext* browser_context,
25 const GURL& url) const OVERRIDE; 25 const GURL& url) const override;
26 virtual bool UseWebUIForURL(content::BrowserContext* browser_context, 26 virtual bool UseWebUIForURL(content::BrowserContext* browser_context,
27 const GURL& url) const OVERRIDE; 27 const GURL& url) const override;
28 virtual bool UseWebUIBindingsForURL(content::BrowserContext* browser_context, 28 virtual bool UseWebUIBindingsForURL(content::BrowserContext* browser_context,
29 const GURL& url) const OVERRIDE; 29 const GURL& url) const override;
30 virtual content::WebUIController* CreateWebUIControllerForURL( 30 virtual content::WebUIController* CreateWebUIControllerForURL(
31 content::WebUI* web_ui, 31 content::WebUI* web_ui,
32 const GURL& url) const OVERRIDE; 32 const GURL& url) const override;
33 33
34 // Get the favicon for |page_url| and run |callback| with result when loaded. 34 // Get the favicon for |page_url| and run |callback| with result when loaded.
35 // Note. |callback| is always run asynchronously. 35 // Note. |callback| is always run asynchronously.
36 void GetFaviconForURL( 36 void GetFaviconForURL(
37 Profile* profile, 37 Profile* profile,
38 const GURL& page_url, 38 const GURL& page_url,
39 const std::vector<int>& desired_sizes_in_pixel, 39 const std::vector<int>& desired_sizes_in_pixel,
40 const favicon_base::FaviconResultsCallback& callback) const; 40 const favicon_base::FaviconResultsCallback& callback) const;
41 41
42 static ChromeWebUIControllerFactory* GetInstance(); 42 static ChromeWebUIControllerFactory* GetInstance();
(...skipping 10 matching lines...) Expand all
53 // The returned favicon data must be 53 // The returned favicon data must be
54 // |gfx::kFaviconSize| x |gfx::kFaviconSize| DIP. GetFaviconForURL() should 54 // |gfx::kFaviconSize| x |gfx::kFaviconSize| DIP. GetFaviconForURL() should
55 // be updated if this changes. 55 // be updated if this changes.
56 base::RefCountedMemory* GetFaviconResourceBytes( 56 base::RefCountedMemory* GetFaviconResourceBytes(
57 const GURL& page_url, ui::ScaleFactor scale_factor) const; 57 const GURL& page_url, ui::ScaleFactor scale_factor) const;
58 58
59 DISALLOW_COPY_AND_ASSIGN(ChromeWebUIControllerFactory); 59 DISALLOW_COPY_AND_ASSIGN(ChromeWebUIControllerFactory);
60 }; 60 };
61 61
62 #endif // CHROME_BROWSER_UI_WEBUI_CHROME_WEB_UI_CONTROLLER_FACTORY_H_ 62 #endif // CHROME_BROWSER_UI_WEBUI_CHROME_WEB_UI_CONTROLLER_FACTORY_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chrome_web_contents_handler.h ('k') | chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698