| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/json/json_writer.h" | 10 #include "base/json/json_writer.h" |
| 11 #include "base/task.h" | |
| 12 #include "base/values.h" | 11 #include "base/values.h" |
| 13 #include "chrome/browser/extensions/extension_cookies_api_constants.h" | 12 #include "chrome/browser/extensions/extension_cookies_api_constants.h" |
| 14 #include "chrome/browser/extensions/extension_cookies_helpers.h" | 13 #include "chrome/browser/extensions/extension_cookies_helpers.h" |
| 15 #include "chrome/browser/extensions/extension_event_router.h" | 14 #include "chrome/browser/extensions/extension_event_router.h" |
| 16 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
| 17 #include "chrome/browser/ui/browser_list.h" | 16 #include "chrome/browser/ui/browser_list.h" |
| 18 #include "chrome/common/chrome_notification_types.h" | 17 #include "chrome/common/chrome_notification_types.h" |
| 19 #include "chrome/common/extensions/extension.h" | 18 #include "chrome/common/extensions/extension.h" |
| 20 #include "chrome/common/extensions/extension_error_utils.h" | 19 #include "chrome/common/extensions/extension_error_utils.h" |
| 21 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
| (...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 extension_cookies_helpers::CreateCookieStoreValue( | 534 extension_cookies_helpers::CreateCookieStoreValue( |
| 536 incognito_profile, incognito_tab_ids.release())); | 535 incognito_profile, incognito_tab_ids.release())); |
| 537 } | 536 } |
| 538 result_.reset(cookie_store_list); | 537 result_.reset(cookie_store_list); |
| 539 return true; | 538 return true; |
| 540 } | 539 } |
| 541 | 540 |
| 542 void GetAllCookieStoresFunction::Run() { | 541 void GetAllCookieStoresFunction::Run() { |
| 543 SendResponse(RunImpl()); | 542 SendResponse(RunImpl()); |
| 544 } | 543 } |
| OLD | NEW |