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 #include "chrome/browser/search/local_ntp_source.h" | 5 #include "chrome/browser/search/local_ntp_source.h" |
6 | 6 |
7 #include "base/base64.h" | 7 #include "base/base64.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/feature_list.h" | 9 #include "base/feature_list.h" |
10 #include "base/json/json_string_value_serializer.h" | 10 #include "base/json/json_string_value_serializer.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "chrome/browser/search/one_google_bar/one_google_bar_service_factory.h" | 25 #include "chrome/browser/search/one_google_bar/one_google_bar_service_factory.h" |
26 #include "chrome/browser/search_engines/template_url_service_factory.h" | 26 #include "chrome/browser/search_engines/template_url_service_factory.h" |
27 #include "chrome/browser/themes/theme_properties.h" | 27 #include "chrome/browser/themes/theme_properties.h" |
28 #include "chrome/browser/themes/theme_service.h" | 28 #include "chrome/browser/themes/theme_service.h" |
29 #include "chrome/browser/themes/theme_service_factory.h" | 29 #include "chrome/browser/themes/theme_service_factory.h" |
30 #include "chrome/common/chrome_features.h" | 30 #include "chrome/common/chrome_features.h" |
31 #include "chrome/common/chrome_switches.h" | 31 #include "chrome/common/chrome_switches.h" |
32 #include "chrome/common/url_constants.h" | 32 #include "chrome/common/url_constants.h" |
33 #include "chrome/grit/browser_resources.h" | 33 #include "chrome/grit/browser_resources.h" |
34 #include "chrome/grit/generated_resources.h" | 34 #include "chrome/grit/generated_resources.h" |
35 #include "chrome/grit/theme_resources.h" | |
36 #include "components/search_engines/template_url_service.h" | 35 #include "components/search_engines/template_url_service.h" |
37 #include "components/search_engines/template_url_service_observer.h" | 36 #include "components/search_engines/template_url_service_observer.h" |
38 #include "components/strings/grit/components_strings.h" | 37 #include "components/strings/grit/components_strings.h" |
39 #include "content/public/browser/browser_thread.h" | 38 #include "content/public/browser/browser_thread.h" |
40 #include "crypto/secure_hash.h" | 39 #include "crypto/secure_hash.h" |
41 #include "net/base/hash_value.h" | 40 #include "net/base/hash_value.h" |
42 #include "net/url_request/url_request.h" | 41 #include "net/url_request/url_request.h" |
43 #include "third_party/skia/include/core/SkColor.h" | 42 #include "third_party/skia/include/core/SkColor.h" |
44 #include "ui/base/l10n/l10n_util.h" | 43 #include "ui/base/l10n/l10n_util.h" |
45 #include "ui/base/resource/resource_bundle.h" | 44 #include "ui/base/resource/resource_bundle.h" |
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 | 506 |
508 LocalNtpSource::OneGoogleBarRequest::OneGoogleBarRequest( | 507 LocalNtpSource::OneGoogleBarRequest::OneGoogleBarRequest( |
509 base::TimeTicks start_time, | 508 base::TimeTicks start_time, |
510 const content::URLDataSource::GotDataCallback& callback) | 509 const content::URLDataSource::GotDataCallback& callback) |
511 : start_time(start_time), callback(callback) {} | 510 : start_time(start_time), callback(callback) {} |
512 | 511 |
513 LocalNtpSource::OneGoogleBarRequest::OneGoogleBarRequest( | 512 LocalNtpSource::OneGoogleBarRequest::OneGoogleBarRequest( |
514 const OneGoogleBarRequest&) = default; | 513 const OneGoogleBarRequest&) = default; |
515 | 514 |
516 LocalNtpSource::OneGoogleBarRequest::~OneGoogleBarRequest() = default; | 515 LocalNtpSource::OneGoogleBarRequest::~OneGoogleBarRequest() = default; |
OLD | NEW |