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

Side by Side Diff: content/browser/devtools/protocol/network_handler.cc

Issue 2971733002: Change CookieStore::DeleteCallback to take uint32_t. (Closed)
Patch Set: Got rid of rest of <cstdint> stuff. Created 3 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 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 #include "content/browser/devtools/protocol/network_handler.h" 5 #include "content/browser/devtools/protocol/network_handler.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h>
8 9
9 #include "base/barrier_closure.h" 10 #include "base/barrier_closure.h"
10 #include "base/base64.h" 11 #include "base/base64.h"
11 #include "base/command_line.h" 12 #include "base/command_line.h"
12 #include "base/containers/hash_tables.h" 13 #include "base/containers/hash_tables.h"
13 #include "base/process/process_handle.h" 14 #include "base/process/process_handle.h"
14 #include "base/strings/string_number_conversions.h" 15 #include "base/strings/string_number_conversions.h"
15 #include "base/strings/stringprintf.h" 16 #include "base/strings/stringprintf.h"
16 #include "base/time/time.h" 17 #include "base/time/time.h"
17 #include "content/browser/devtools/devtools_session.h" 18 #include "content/browser/devtools/devtools_session.h"
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 std::unique_ptr<GetCookiesCallback> callback_; 184 std::unique_ptr<GetCookiesCallback> callback_;
184 std::unique_ptr<GetAllCookiesCallback> all_callback_; 185 std::unique_ptr<GetAllCookiesCallback> all_callback_;
185 int callback_count_ = 0; 186 int callback_count_ = 0;
186 std::unordered_map<std::string, net::CanonicalCookie> cookies_; 187 std::unordered_map<std::string, net::CanonicalCookie> cookies_;
187 188
188 private: 189 private:
189 friend class base::RefCountedThreadSafe<CookieRetriever>; 190 friend class base::RefCountedThreadSafe<CookieRetriever>;
190 }; 191 };
191 192
192 void ClearedCookiesOnIO(std::unique_ptr<ClearBrowserCookiesCallback> callback, 193 void ClearedCookiesOnIO(std::unique_ptr<ClearBrowserCookiesCallback> callback,
193 int num_deleted) { 194 uint32_t num_deleted) {
194 DCHECK_CURRENTLY_ON(BrowserThread::IO); 195 DCHECK_CURRENTLY_ON(BrowserThread::IO);
195 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, 196 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
196 base::Bind(&ClearBrowserCookiesCallback::sendSuccess, 197 base::Bind(&ClearBrowserCookiesCallback::sendSuccess,
197 base::Passed(std::move(callback)))); 198 base::Passed(std::move(callback))));
198 } 199 }
199 200
200 void ClearCookiesOnIO(ResourceContext* resource_context, 201 void ClearCookiesOnIO(ResourceContext* resource_context,
201 net::URLRequestContextGetter* context_getter, 202 net::URLRequestContextGetter* context_getter,
202 std::unique_ptr<ClearBrowserCookiesCallback> callback) { 203 std::unique_ptr<ClearBrowserCookiesCallback> callback) {
203 DCHECK_CURRENTLY_ON(BrowserThread::IO); 204 DCHECK_CURRENTLY_ON(BrowserThread::IO);
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 .SetReferrerPolicy(referrerPolicy(request->referrer_policy())) 937 .SetReferrerPolicy(referrerPolicy(request->referrer_policy()))
937 .Build(); 938 .Build();
938 std::string post_data; 939 std::string post_data;
939 if (GetPostData(request, &post_data)) 940 if (GetPostData(request, &post_data))
940 request_object->SetPostData(std::move(post_data)); 941 request_object->SetPostData(std::move(post_data));
941 return request_object; 942 return request_object;
942 } 943 }
943 944
944 } // namespace protocol 945 } // namespace protocol
945 } // namespace content 946 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/sessions/session_data_deleter.cc ('k') | content/browser/storage_partition_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698