Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(287)

Side by Side Diff: chrome/browser/automation/automation_provider_observers.h

Issue 7277073: Support for adding save page download items into downloads history. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 5 #ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 1216 matching lines...) Expand 10 before | Expand all | Expand 10 after
1227 base::WeakPtr<AutomationProvider> automation_; 1227 base::WeakPtr<AutomationProvider> automation_;
1228 scoped_ptr<IPC::Message> reply_message_; 1228 scoped_ptr<IPC::Message> reply_message_;
1229 NavigationController* controller_; 1229 NavigationController* controller_;
1230 1230
1231 DISALLOW_COPY_AND_ASSIGN(OmniboxAcceptNotificationObserver); 1231 DISALLOW_COPY_AND_ASSIGN(OmniboxAcceptNotificationObserver);
1232 }; 1232 };
1233 1233
1234 // Allows the automation provider to wait for a save package notification. 1234 // Allows the automation provider to wait for a save package notification.
1235 class SavePackageNotificationObserver : public NotificationObserver { 1235 class SavePackageNotificationObserver : public NotificationObserver {
1236 public: 1236 public:
1237 SavePackageNotificationObserver(SavePackage* save_package, 1237 SavePackageNotificationObserver(DownloadManager* download_manager,
1238 AutomationProvider* automation, 1238 AutomationProvider* automation,
1239 IPC::Message* reply_message); 1239 IPC::Message* reply_message);
1240 virtual ~SavePackageNotificationObserver(); 1240 virtual ~SavePackageNotificationObserver();
1241 1241
1242 virtual void Observe(int type, 1242 virtual void Observe(int type,
1243 const NotificationSource& source, 1243 const NotificationSource& source,
1244 const NotificationDetails& details); 1244 const NotificationDetails& details);
1245 1245
1246 private: 1246 private:
1247 NotificationRegistrar registrar_; 1247 NotificationRegistrar registrar_;
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
1614 1614
1615 private: 1615 private:
1616 NotificationRegistrar registrar_; 1616 NotificationRegistrar registrar_;
1617 base::WeakPtr<AutomationProvider> automation_; 1617 base::WeakPtr<AutomationProvider> automation_;
1618 scoped_ptr<IPC::Message> reply_message_; 1618 scoped_ptr<IPC::Message> reply_message_;
1619 1619
1620 DISALLOW_COPY_AND_ASSIGN(DragTargetDropAckNotificationObserver); 1620 DISALLOW_COPY_AND_ASSIGN(DragTargetDropAckNotificationObserver);
1621 }; 1621 };
1622 1622
1623 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 1623 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/automation/automation_provider_observers.cc » ('j') | chrome/browser/download/download_manager.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698