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

Side by Side Diff: components/copresence/rpc/http_post.h

Issue 484853004: Improving copresence request logging (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@hack
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | components/copresence/rpc/http_post.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_COPRESENCE_RPC_HTTP_POST_H_ 5 #ifndef COMPONENTS_COPRESENCE_RPC_HTTP_POST_H_
6 #define COMPONENTS_COPRESENCE_RPC_HTTP_POST_H_ 6 #define COMPONENTS_COPRESENCE_RPC_HTTP_POST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 // HTTP requests are cancelled on delete. 49 // HTTP requests are cancelled on delete.
50 virtual ~HttpPost(); 50 virtual ~HttpPost();
51 51
52 // Send an HttpPost request. 52 // Send an HttpPost request.
53 void Start(const ResponseCallback& response_callback); 53 void Start(const ResponseCallback& response_callback);
54 54
55 private: 55 private:
56 static const int kUrlFetcherId = 1; 56 static const int kUrlFetcherId = 1;
57 static const char kApiKeyField[]; 57 static const char kApiKeyField[];
58 static const char kTracingTokenField[]; 58 static const char kTracingField[];
59 59
60 friend class HttpPostTest; 60 friend class HttpPostTest;
61 61
62 // Overridden from net::URLFetcherDelegate. 62 // Overridden from net::URLFetcherDelegate.
63 virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE; 63 virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
64 64
65 ResponseCallback response_callback_; 65 ResponseCallback response_callback_;
66 66
67 scoped_ptr<net::URLFetcher> url_fetcher_; 67 scoped_ptr<net::URLFetcher> url_fetcher_;
68 68
69 DISALLOW_COPY_AND_ASSIGN(HttpPost); 69 DISALLOW_COPY_AND_ASSIGN(HttpPost);
70 }; 70 };
71 71
72 } // namespace copresence 72 } // namespace copresence
73 73
74 #endif // COMPONENTS_COPRESENCE_RPC_HTTP_POST_H_ 74 #endif // COMPONENTS_COPRESENCE_RPC_HTTP_POST_H_
OLDNEW
« no previous file with comments | « no previous file | components/copresence/rpc/http_post.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698