OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_SUGGESTIONS_SUGGESTIONS_SERVICE_H_ | 5 #ifndef COMPONENTS_SUGGESTIONS_SUGGESTIONS_SERVICE_H_ |
6 #define COMPONENTS_SUGGESTIONS_SUGGESTIONS_SERVICE_H_ | 6 #define COMPONENTS_SUGGESTIONS_SUGGESTIONS_SERVICE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/callback.h" | 13 #include "base/callback.h" |
14 #include "base/callback_list.h" | 14 #include "base/callback_list.h" |
15 #include "base/gtest_prod_util.h" | 15 #include "base/gtest_prod_util.h" |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
18 #include "base/scoped_observer.h" | 18 #include "base/scoped_observer.h" |
19 #include "base/threading/thread_checker.h" | 19 #include "base/threading/thread_checker.h" |
20 #include "base/time/time.h" | 20 #include "base/time/time.h" |
21 #include "components/keyed_service/core/keyed_service.h" | 21 #include "components/keyed_service/core/keyed_service.h" |
22 #include "components/suggestions/proto/suggestions.pb.h" | 22 #include "components/suggestions/proto/suggestions.pb.h" |
23 #include "components/sync_driver/sync_service_observer.h" | 23 #include "components/sync/driver/sync_service_observer.h" |
24 #include "net/url_request/url_fetcher_delegate.h" | 24 #include "net/url_request/url_fetcher_delegate.h" |
25 #include "url/gurl.h" | 25 #include "url/gurl.h" |
26 | 26 |
27 namespace gfx { | 27 namespace gfx { |
28 class Image; | 28 class Image; |
29 } | 29 } |
30 | 30 |
31 namespace net { | 31 namespace net { |
32 class URLRequestContextGetter; | 32 class URLRequestContextGetter; |
33 } // namespace net | 33 } // namespace net |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 | 223 |
224 // For callbacks may be run after destruction. | 224 // For callbacks may be run after destruction. |
225 base::WeakPtrFactory<SuggestionsService> weak_ptr_factory_; | 225 base::WeakPtrFactory<SuggestionsService> weak_ptr_factory_; |
226 | 226 |
227 DISALLOW_COPY_AND_ASSIGN(SuggestionsService); | 227 DISALLOW_COPY_AND_ASSIGN(SuggestionsService); |
228 }; | 228 }; |
229 | 229 |
230 } // namespace suggestions | 230 } // namespace suggestions |
231 | 231 |
232 #endif // COMPONENTS_SUGGESTIONS_SUGGESTIONS_SERVICE_H_ | 232 #endif // COMPONENTS_SUGGESTIONS_SUGGESTIONS_SERVICE_H_ |
OLD | NEW |