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

Side by Side Diff: mojo/services/network/cookie_store_impl.cc

Issue 975083002: mojo/common: Decouple GURL dependency (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Landing Created 5 years, 9 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 "mojo/services/network/cookie_store_impl.h" 5 #include "mojo/services/network/cookie_store_impl.h"
6 6
7 #include "mojo/common/common_type_converters.h" 7 #include "mojo/common/url_type_converters.h"
8 #include "mojo/services/network/network_context.h" 8 #include "mojo/services/network/network_context.h"
9 #include "net/cookies/cookie_store.h" 9 #include "net/cookies/cookie_store.h"
10 #include "net/url_request/url_request_context.h" 10 #include "net/url_request/url_request_context.h"
11 11
12 namespace mojo { 12 namespace mojo {
13 namespace { 13 namespace {
14 14
15 void AdaptGetCookiesCallback(const Callback<void(String)>& callback, 15 void AdaptGetCookiesCallback(const Callback<void(String)>& callback,
16 const std::string& cookies) { 16 const std::string& cookies) {
17 callback.Run(cookies); 17 callback.Run(cookies);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 return; 57 return;
58 } 58 }
59 store->SetCookieWithOptionsAsync( 59 store->SetCookieWithOptionsAsync(
60 url.To<GURL>(), 60 url.To<GURL>(),
61 cookie, 61 cookie,
62 net::CookieOptions(), 62 net::CookieOptions(),
63 base::Bind(&AdaptSetCookieCallback, callback)); 63 base::Bind(&AdaptSetCookieCallback, callback));
64 } 64 }
65 65
66 } // namespace mojo 66 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/html_viewer/weburlloader_impl.cc ('k') | mojo/services/network/url_loader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698