OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_BROWSER_TRACING_TRACING_UI_H_ | 5 #ifndef CONTENT_BROWSER_TRACING_TRACING_UI_H_ |
6 #define CONTENT_BROWSER_TRACING_TRACING_UI_H_ | 6 #define CONTENT_BROWSER_TRACING_TRACING_UI_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 15 matching lines...) Expand all Loading... |
26 ~TracingUI() override; | 26 ~TracingUI() override; |
27 void OnTraceUploadProgress(int64_t current, int64_t total); | 27 void OnTraceUploadProgress(int64_t current, int64_t total); |
28 void OnTraceUploadComplete(bool success, const std::string& feedback); | 28 void OnTraceUploadComplete(bool success, const std::string& feedback); |
29 | 29 |
30 private: | 30 private: |
31 void DoUploadInternal(const std::string& file_contents, | 31 void DoUploadInternal(const std::string& file_contents, |
32 TraceUploader::UploadMode upload_mode); | 32 TraceUploader::UploadMode upload_mode); |
33 void DoUpload(const base::ListValue* args); | 33 void DoUpload(const base::ListValue* args); |
34 void DoUploadBase64Encoded(const base::ListValue* args); | 34 void DoUploadBase64Encoded(const base::ListValue* args); |
35 | 35 |
36 scoped_ptr<TracingDelegate> delegate_; | 36 std::unique_ptr<TracingDelegate> delegate_; |
37 scoped_ptr<TraceUploader> trace_uploader_; | 37 std::unique_ptr<TraceUploader> trace_uploader_; |
38 base::WeakPtrFactory<TracingUI> weak_factory_; | 38 base::WeakPtrFactory<TracingUI> weak_factory_; |
39 | 39 |
40 DISALLOW_COPY_AND_ASSIGN(TracingUI); | 40 DISALLOW_COPY_AND_ASSIGN(TracingUI); |
41 }; | 41 }; |
42 | 42 |
43 } // namespace content | 43 } // namespace content |
44 | 44 |
45 #endif // CONTENT_BROWSER_TRACING_TRACING_UI_H_ | 45 #endif // CONTENT_BROWSER_TRACING_TRACING_UI_H_ |
OLD | NEW |