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

Unified Diff: components/copresence/rpc/http_post.h

Issue 453793002: Add audible support to the copresence API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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 side-by-side diff with in-line comments
Download patch
Index: components/copresence/rpc/http_post.h
diff --git a/components/copresence/rpc/http_post.h b/components/copresence/rpc/http_post.h
index 5de67f2d0ce8c75dfea22246d51a47fbba3ba5d5..d3c70a51f2a63fa7682807fa357506703a332fb8 100644
--- a/components/copresence/rpc/http_post.h
+++ b/components/copresence/rpc/http_post.h
@@ -32,9 +32,8 @@ namespace copresence {
class HttpPost : public net::URLFetcherDelegate {
public:
// Callback to receive the HTTP status code and body of the response
- // (if any). A pointer to this HttpPost object is also passed along.
- typedef base::Callback<void(int, const std::string&, HttpPost*)>
- ResponseCallback;
+ // (if any).
+ typedef base::Callback<void(int, const std::string&)> ResponseCallback;
// An id for testing url fetching.
static const int kUrlFetcherId = 1;
@@ -46,8 +45,9 @@ class HttpPost : public net::URLFetcherDelegate {
HttpPost(net::URLRequestContextGetter* url_context_getter,
const std::string& server_host,
const std::string& rpc_name,
- const google::protobuf::MessageLite& request_proto,
- const ResponseCallback& response_callback);
+ const google::protobuf::MessageLite& request_proto);
+
+ void Start(const ResponseCallback& response_callback);
// HTTP requests are cancelled on delete.
virtual ~HttpPost();

Powered by Google App Engine
This is Rietveld 408576698