Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: chrome/browser/media/webrtc_log_uploader.h

Issue 1978183003: Refactor WebRtcLoggingHandlerHost in preparation of automatic upload of WebRtcEventLogs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix race when renderer is closing while the log is in STARTING or STOPPING state Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_MEDIA_WEBRTC_LOG_UPLOADER_H_ 5 #ifndef CHROME_BROWSER_MEDIA_WEBRTC_LOG_UPLOADER_H_
6 #define CHROME_BROWSER_MEDIA_WEBRTC_LOG_UPLOADER_H_ 6 #define CHROME_BROWSER_MEDIA_WEBRTC_LOG_UPLOADER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/gtest_prod_util.h" 14 #include "base/gtest_prod_util.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/threading/thread_checker.h" 16 #include "base/threading/thread_checker.h"
17 #include "chrome/browser/media/webrtc_logging_handler_host.h" 17 #include "chrome/browser/media/webrtc_logging_handler_host.h"
18 #include "net/url_request/url_fetcher_delegate.h" 18 #include "net/url_request/url_fetcher_delegate.h"
19 19
20 class Profile; 20 class Profile;
21 21
22 namespace base {
23 class SharedMemory;
24 }
25
26 namespace net { 22 namespace net {
27 class URLFetcher; 23 class URLFetcher;
28 } 24 }
29 25
30 typedef struct z_stream_s z_stream; 26 typedef struct z_stream_s z_stream;
31 27
32 // Used when uploading is done to perform post-upload actions. |log_path| is 28 // Used when uploading is done to perform post-upload actions. |log_path| is
33 // also used pre-upload. 29 // also used pre-upload.
34 struct WebRtcLogUploadDoneData : public WebRtcLogPaths { 30 struct WebRtcLogUploadDoneData : public WebRtcLogPaths {
35 WebRtcLogUploadDoneData(); 31 WebRtcLogUploadDoneData();
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 // Only accessed on the IO thread. 189 // Only accessed on the IO thread.
194 UploadDoneDataMap upload_done_data_; 190 UploadDoneDataMap upload_done_data_;
195 191
196 // When shutting down, don't create new URLFetchers. 192 // When shutting down, don't create new URLFetchers.
197 bool shutting_down_; 193 bool shutting_down_;
198 194
199 DISALLOW_COPY_AND_ASSIGN(WebRtcLogUploader); 195 DISALLOW_COPY_AND_ASSIGN(WebRtcLogUploader);
200 }; 196 };
201 197
202 #endif // CHROME_BROWSER_MEDIA_WEBRTC_LOG_UPLOADER_H_ 198 #endif // CHROME_BROWSER_MEDIA_WEBRTC_LOG_UPLOADER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/media/webrtc_logging_handler_host.h » ('j') | chrome/browser/media/webrtc_logging_handler_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698