Chromium Code Reviews| OLD | NEW |
|---|---|
| 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/common_type_converters.h" |
|
Ken Rockot(use gerrit already)
2015/03/04 03:27:56
same question
Hajime Morrita
2015/03/05 18:29:41
Done.
| |
| 8 #include "mojo/common/url_type_converters.h" | |
| 8 #include "mojo/services/network/network_context.h" | 9 #include "mojo/services/network/network_context.h" |
| 9 #include "net/cookies/cookie_store.h" | 10 #include "net/cookies/cookie_store.h" |
| 10 #include "net/url_request/url_request_context.h" | 11 #include "net/url_request/url_request_context.h" |
| 11 | 12 |
| 12 namespace mojo { | 13 namespace mojo { |
| 13 namespace { | 14 namespace { |
| 14 | 15 |
| 15 void AdaptGetCookiesCallback(const Callback<void(String)>& callback, | 16 void AdaptGetCookiesCallback(const Callback<void(String)>& callback, |
| 16 const std::string& cookies) { | 17 const std::string& cookies) { |
| 17 callback.Run(cookies); | 18 callback.Run(cookies); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 57 return; | 58 return; |
| 58 } | 59 } |
| 59 store->SetCookieWithOptionsAsync( | 60 store->SetCookieWithOptionsAsync( |
| 60 url.To<GURL>(), | 61 url.To<GURL>(), |
| 61 cookie, | 62 cookie, |
| 62 net::CookieOptions(), | 63 net::CookieOptions(), |
| 63 base::Bind(&AdaptSetCookieCallback, callback)); | 64 base::Bind(&AdaptSetCookieCallback, callback)); |
| 64 } | 65 } |
| 65 | 66 |
| 66 } // namespace mojo | 67 } // namespace mojo |
| OLD | NEW |