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 CHROME_BROWSER_FEEDBACK_FEEDBACK_UPLOADER_CHROME_H_ | 5 #ifndef COMPONENTS_FEEDBACK_FEEDBACK_UPLOADER_CHROME_H_ |
6 #define CHROME_BROWSER_FEEDBACK_FEEDBACK_UPLOADER_CHROME_H_ | 6 #define COMPONENTS_FEEDBACK_FEEDBACK_UPLOADER_CHROME_H_ |
7 | 7 |
8 #include "chrome/browser/feedback/feedback_uploader.h" | 8 #include "components/feedback/feedback_uploader.h" |
9 | |
10 #include "components/keyed_service/core/keyed_service.h" | 9 #include "components/keyed_service/core/keyed_service.h" |
11 | 10 |
12 namespace content { | 11 namespace content { |
13 class BrowserContext; | 12 class BrowserContext; |
14 } | 13 } |
15 | 14 |
16 namespace feedback { | 15 namespace feedback { |
17 | 16 |
18 class FeedbackUploaderChrome : public FeedbackUploader, | 17 class FeedbackUploaderChrome : public FeedbackUploader, |
19 public KeyedService { | 18 public KeyedService { |
20 public: | 19 public: |
21 explicit FeedbackUploaderChrome(content::BrowserContext* context); | 20 explicit FeedbackUploaderChrome(content::BrowserContext* context); |
22 | 21 |
23 virtual void DispatchReport(const std::string& data) OVERRIDE; | 22 virtual void DispatchReport(const std::string& data) OVERRIDE; |
24 | 23 |
25 private: | 24 private: |
26 // Browser context this uploader was created for. | 25 // Browser context this uploader was created for. |
27 content::BrowserContext* context_; | 26 content::BrowserContext* context_; |
28 | 27 |
29 DISALLOW_COPY_AND_ASSIGN(FeedbackUploaderChrome); | 28 DISALLOW_COPY_AND_ASSIGN(FeedbackUploaderChrome); |
30 }; | 29 }; |
31 | 30 |
32 } // namespace feedback | 31 } // namespace feedback |
33 | 32 |
34 #endif // CHROME_BROWSER_FEEDBACK_FEEDBACK_UPLOADER_CHROME_H_ | 33 #endif // COMPONENTS_FEEDBACK_FEEDBACK_UPLOADER_CHROME_H_ |
OLD | NEW |