Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SEARCH_LOCAL_OMNIBOX_POPUP_SOURCE_H_ | 5 #ifndef CHROME_BROWSER_SEARCH_LOCAL_NTP_SOURCE_H_ |
| 6 #define CHROME_BROWSER_SEARCH_LOCAL_OMNIBOX_POPUP_SOURCE_H_ | 6 #define CHROME_BROWSER_SEARCH_LOCAL_NTP_SOURCE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "content/public/browser/url_data_source.h" | 10 #include "content/public/browser/url_data_source.h" |
| 11 | 11 |
| 12 // Serves HTML and resources for the local omnibox popup i.e. | 12 // Serves HTML and resources for the local new tab page i.e. |
| 13 // chrome-search://local-omnibox-popup/local_omnibox_popup.html | 13 // chrome-search://local-ntp/local-ntp.html |
| 14 class LocalOmniboxPopupSource : public content::URLDataSource { | 14 class LocalNTPSource : public content::URLDataSource { |
| 15 public: | 15 public: |
| 16 LocalOmniboxPopupSource(); | 16 LocalNTPSource(); |
| 17 | 17 |
| 18 // content::URLDataSource overrides. | 18 private: |
| 19 virtual ~LocalNTPSource(); | |
| 20 | |
| 21 // Overridden from content::URLDataSource: | |
|
Dan Beam
2013/03/25 18:13:49
^ why are you putting these in private:?
jeremycho
2013/03/25 21:27:16
There didn't seem to be a reason to expose them.
Dan Beam
2013/03/25 21:37:39
static_cast<parent*>(class)->DoParentThing() still
| |
| 19 virtual std::string GetSource() OVERRIDE; | 22 virtual std::string GetSource() OVERRIDE; |
| 20 virtual void StartDataRequest( | 23 virtual void StartDataRequest( |
| 21 const std::string& path, | 24 const std::string& path, |
| 22 bool is_incognito, | 25 bool is_incognito, |
| 23 const content::URLDataSource::GotDataCallback& callback) OVERRIDE; | 26 const content::URLDataSource::GotDataCallback& callback) OVERRIDE; |
| 24 virtual std::string GetMimeType(const std::string& path) const OVERRIDE; | 27 virtual std::string GetMimeType(const std::string& path) const OVERRIDE; |
| 25 virtual bool ShouldServiceRequest( | 28 virtual bool ShouldServiceRequest( |
| 26 const net::URLRequest* request) const OVERRIDE; | 29 const net::URLRequest* request) const OVERRIDE; |
| 27 | 30 |
| 28 private: | 31 DISALLOW_COPY_AND_ASSIGN(LocalNTPSource); |
| 29 virtual ~LocalOmniboxPopupSource(); | |
| 30 | |
| 31 DISALLOW_COPY_AND_ASSIGN(LocalOmniboxPopupSource); | |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 #endif // CHROME_BROWSER_SEARCH_LOCAL_OMNIBOX_POPUP_SOURCE_H_ | 34 #endif // CHROME_BROWSER_SEARCH_LOCAL_NTP_SOURCE_H_ |
| OLD | NEW |