| 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 #include "chrome/browser/automation/testing_automation_provider.h" | 5 #include "chrome/browser/automation/testing_automation_provider.h" |
| 6 | 6 |
| 7 #include "app/message_box_flags.h" | 7 #include "app/message_box_flags.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/json/json_reader.h" | 9 #include "base/json/json_reader.h" |
| 10 #include "base/json/json_writer.h" | 10 #include "base/json/json_writer.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 #include "chrome/common/chrome_constants.h" | 59 #include "chrome/common/chrome_constants.h" |
| 60 #include "chrome/common/chrome_paths.h" | 60 #include "chrome/common/chrome_paths.h" |
| 61 #include "chrome/common/chrome_switches.h" | 61 #include "chrome/common/chrome_switches.h" |
| 62 #include "chrome/common/net/url_request_context_getter.h" | 62 #include "chrome/common/net/url_request_context_getter.h" |
| 63 #include "chrome/common/notification_service.h" | 63 #include "chrome/common/notification_service.h" |
| 64 #include "chrome/common/url_constants.h" | 64 #include "chrome/common/url_constants.h" |
| 65 #include "chrome/browser/notifications/balloon.h" | 65 #include "chrome/browser/notifications/balloon.h" |
| 66 #include "chrome/browser/notifications/balloon_collection.h" | 66 #include "chrome/browser/notifications/balloon_collection.h" |
| 67 #include "chrome/browser/notifications/notification.h" | 67 #include "chrome/browser/notifications/notification.h" |
| 68 #include "chrome/browser/notifications/notification_ui_manager.h" | 68 #include "chrome/browser/notifications/notification_ui_manager.h" |
| 69 #include "chrome/test/automation/automation_messages.h" | 69 #include "chrome/common/automation_messages.h" |
| 70 #include "net/base/cookie_store.h" | 70 #include "net/base/cookie_store.h" |
| 71 #include "net/url_request/url_request_context.h" | 71 #include "net/url_request/url_request_context.h" |
| 72 #include "views/event.h" | 72 #include "views/event.h" |
| 73 #include "webkit/glue/plugins/plugin_list.h" | 73 #include "webkit/glue/plugins/plugin_list.h" |
| 74 | 74 |
| 75 namespace { | 75 namespace { |
| 76 | 76 |
| 77 class GetCookiesTask : public Task { | 77 class GetCookiesTask : public Task { |
| 78 public: | 78 public: |
| 79 GetCookiesTask(const GURL& url, | 79 GetCookiesTask(const GURL& url, |
| (...skipping 4355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4435 DCHECK(type == NotificationType::SESSION_END); | 4435 DCHECK(type == NotificationType::SESSION_END); |
| 4436 // OnBrowserRemoved does a ReleaseLater. When session end is received we exit | 4436 // OnBrowserRemoved does a ReleaseLater. When session end is received we exit |
| 4437 // before the task runs resulting in this object not being deleted. This | 4437 // before the task runs resulting in this object not being deleted. This |
| 4438 // Release balance out the Release scheduled by OnBrowserRemoved. | 4438 // Release balance out the Release scheduled by OnBrowserRemoved. |
| 4439 Release(); | 4439 Release(); |
| 4440 } | 4440 } |
| 4441 | 4441 |
| 4442 void TestingAutomationProvider::OnRemoveProvider() { | 4442 void TestingAutomationProvider::OnRemoveProvider() { |
| 4443 AutomationProviderList::GetInstance()->RemoveProvider(this); | 4443 AutomationProviderList::GetInstance()->RemoveProvider(this); |
| 4444 } | 4444 } |
| OLD | NEW |