OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // Implements the Chrome Extensions Cookies API. | 5 // Implements the Chrome Extensions Cookies API. |
6 | 6 |
7 #include "chrome/browser/extensions/extension_cookies_api.h" | 7 #include "chrome/browser/extensions/extension_cookies_api.h" |
8 | 8 |
9 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
10 #include "base/task.h" | 10 #include "base/task.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "chrome/browser/browser_list.h" | 12 #include "chrome/browser/browser_list.h" |
13 #include "chrome/browser/browser_thread.h" | 13 #include "chrome/browser/browser_thread.h" |
14 #include "chrome/browser/extensions/extension_cookies_api_constants.h" | 14 #include "chrome/browser/extensions/extension_cookies_api_constants.h" |
15 #include "chrome/browser/extensions/extension_cookies_helpers.h" | 15 #include "chrome/browser/extensions/extension_cookies_helpers.h" |
16 #include "chrome/browser/extensions/extension_event_router.h" | 16 #include "chrome/browser/extensions/extension_event_router.h" |
17 #include "chrome/browser/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
18 #include "chrome/common/extensions/extension.h" | 18 #include "chrome/common/extensions/extension.h" |
19 #include "chrome/common/extensions/extension_error_utils.h" | 19 #include "chrome/common/extensions/extension_error_utils.h" |
20 #include "chrome/common/net/url_request_context_getter.h" | 20 #include "chrome/common/net/url_request_context_getter.h" |
21 #include "chrome/common/notification_type.h" | 21 #include "chrome/common/notification_type.h" |
22 #include "chrome/common/notification_service.h" | 22 #include "chrome/common/notification_service.h" |
23 #include "net/base/cookie_monster.h" | 23 #include "net/base/cookie_monster.h" |
24 | 24 |
25 namespace keys = extension_cookies_api_constants; | 25 namespace keys = extension_cookies_api_constants; |
26 | 26 |
27 // static | 27 // static |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 extension_cookies_helpers::CreateCookieStoreValue( | 459 extension_cookies_helpers::CreateCookieStoreValue( |
460 incognito_profile, incognito_tab_ids.release())); | 460 incognito_profile, incognito_tab_ids.release())); |
461 } | 461 } |
462 result_.reset(cookie_store_list); | 462 result_.reset(cookie_store_list); |
463 return true; | 463 return true; |
464 } | 464 } |
465 | 465 |
466 void GetAllCookieStoresFunction::Run() { | 466 void GetAllCookieStoresFunction::Run() { |
467 SendResponse(RunImpl()); | 467 SendResponse(RunImpl()); |
468 } | 468 } |
OLD | NEW |