| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/automation/automation_util.h" | 5 #include "chrome/browser/automation/automation_util.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #include "content/public/browser/browser_thread.h" | 31 #include "content/public/browser/browser_thread.h" |
| 32 #include "content/public/browser/render_process_host.h" | 32 #include "content/public/browser/render_process_host.h" |
| 33 #include "content/public/browser/render_view_host.h" | 33 #include "content/public/browser/render_view_host.h" |
| 34 #include "content/public/browser/web_contents.h" | 34 #include "content/public/browser/web_contents.h" |
| 35 #include "net/base/cookie_monster.h" | 35 #include "net/base/cookie_monster.h" |
| 36 #include "net/base/cookie_store.h" | 36 #include "net/base/cookie_store.h" |
| 37 #include "net/url_request/url_request_context.h" | 37 #include "net/url_request/url_request_context.h" |
| 38 #include "net/url_request/url_request_context_getter.h" | 38 #include "net/url_request/url_request_context_getter.h" |
| 39 | 39 |
| 40 using content::BrowserThread; | 40 using content::BrowserThread; |
| 41 using content::RenderViewHost; |
| 41 using content::WebContents; | 42 using content::WebContents; |
| 42 | 43 |
| 43 namespace { | 44 namespace { |
| 44 | 45 |
| 45 void GetCookiesCallback(base::WaitableEvent* event, | 46 void GetCookiesCallback(base::WaitableEvent* event, |
| 46 std::string* cookies, | 47 std::string* cookies, |
| 47 const std::string& cookie_line) { | 48 const std::string& cookie_line) { |
| 48 *cookies = cookie_line; | 49 *cookies = cookie_line; |
| 49 event->Signal(); | 50 event->Signal(); |
| 50 } | 51 } |
| (...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 const Extension* extension; | 536 const Extension* extension; |
| 536 return GetExtensionForId(id, profile, &extension); | 537 return GetExtensionForId(id, profile, &extension); |
| 537 } | 538 } |
| 538 default: | 539 default: |
| 539 break; | 540 break; |
| 540 } | 541 } |
| 541 return false; | 542 return false; |
| 542 } | 543 } |
| 543 | 544 |
| 544 } // namespace automation_util | 545 } // namespace automation_util |
| OLD | NEW |