| 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_NTP_SOURCE_H_ | 5 #ifndef CHROME_BROWSER_SEARCH_LOCAL_NTP_SOURCE_H_ |
| 6 #define CHROME_BROWSER_SEARCH_LOCAL_NTP_SOURCE_H_ | 6 #define CHROME_BROWSER_SEARCH_LOCAL_NTP_SOURCE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 ~LocalNtpSource() override; | 33 ~LocalNtpSource() override; |
| 34 | 34 |
| 35 // Overridden from content::URLDataSource: | 35 // Overridden from content::URLDataSource: |
| 36 std::string GetSource() const override; | 36 std::string GetSource() const override; |
| 37 void StartDataRequest( | 37 void StartDataRequest( |
| 38 const std::string& path, | 38 const std::string& path, |
| 39 const content::ResourceRequestInfo::WebContentsGetter& wc_getter, | 39 const content::ResourceRequestInfo::WebContentsGetter& wc_getter, |
| 40 const content::URLDataSource::GotDataCallback& callback) override; | 40 const content::URLDataSource::GotDataCallback& callback) override; |
| 41 std::string GetMimeType(const std::string& path) const override; | 41 std::string GetMimeType(const std::string& path) const override; |
| 42 bool AllowCaching() const override; | 42 bool AllowCaching() const override; |
| 43 bool ShouldServiceRequest(const net::URLRequest* request) const override; | 43 bool ShouldServiceRequest(const GURL& url, |
| 44 content::ResourceContext* resource_context, |
| 45 int render_process_id) const override; |
| 44 std::string GetContentSecurityPolicyScriptSrc() const override; | 46 std::string GetContentSecurityPolicyScriptSrc() const override; |
| 45 std::string GetContentSecurityPolicyChildSrc() const override; | 47 std::string GetContentSecurityPolicyChildSrc() const override; |
| 46 | 48 |
| 47 // Overridden from OneGoogleBarServiceObserver: | 49 // Overridden from OneGoogleBarServiceObserver: |
| 48 void OnOneGoogleBarDataChanged() override; | 50 void OnOneGoogleBarDataChanged() override; |
| 49 void OnOneGoogleBarFetchFailed() override; | 51 void OnOneGoogleBarFetchFailed() override; |
| 50 void OnOneGoogleBarServiceShuttingDown() override; | 52 void OnOneGoogleBarServiceShuttingDown() override; |
| 51 | 53 |
| 52 void ServeOneGoogleBar(const OneGoogleBarData& data); | 54 void ServeOneGoogleBar(const OneGoogleBarData& data); |
| 53 void ServeNullOneGoogleBar(); | 55 void ServeNullOneGoogleBar(); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 69 bool default_search_provider_is_google_; | 71 bool default_search_provider_is_google_; |
| 70 // A copy of |default_search_provider_is_google_| for use on the IO thread. | 72 // A copy of |default_search_provider_is_google_| for use on the IO thread. |
| 71 bool default_search_provider_is_google_io_thread_; | 73 bool default_search_provider_is_google_io_thread_; |
| 72 | 74 |
| 73 base::WeakPtrFactory<LocalNtpSource> weak_ptr_factory_; | 75 base::WeakPtrFactory<LocalNtpSource> weak_ptr_factory_; |
| 74 | 76 |
| 75 DISALLOW_COPY_AND_ASSIGN(LocalNtpSource); | 77 DISALLOW_COPY_AND_ASSIGN(LocalNtpSource); |
| 76 }; | 78 }; |
| 77 | 79 |
| 78 #endif // CHROME_BROWSER_SEARCH_LOCAL_NTP_SOURCE_H_ | 80 #endif // CHROME_BROWSER_SEARCH_LOCAL_NTP_SOURCE_H_ |
| OLD | NEW |