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

Side by Side Diff: chrome/browser/notifications/notification_object_proxy.h

Issue 7125006: Get rid of Chrome notifications dependency, and instead go through ContentBrowserClient to show U... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix browsertest Created 9 years, 6 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_NOTIFICATIONS_NOTIFICATION_OBJECT_PROXY_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OBJECT_PROXY_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OBJECT_PROXY_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OBJECT_PROXY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 21 matching lines...) Expand all
32 virtual void Close(bool by_user); 32 virtual void Close(bool by_user);
33 virtual void Click(); 33 virtual void Click();
34 virtual std::string id() const; 34 virtual std::string id() const;
35 35
36 protected: 36 protected:
37 friend class base::RefCountedThreadSafe<NotificationObjectProxy>; 37 friend class base::RefCountedThreadSafe<NotificationObjectProxy>;
38 38
39 virtual ~NotificationObjectProxy() {} 39 virtual ~NotificationObjectProxy() {}
40 40
41 private: 41 private:
42 // Called on UI thread to send a message.
43 void Send(IPC::Message* message);
44
45 // Callback information to find the JS Notification object where it lives. 42 // Callback information to find the JS Notification object where it lives.
46 int process_id_; 43 int process_id_;
47 int route_id_; 44 int route_id_;
48 int notification_id_; 45 int notification_id_;
49 bool worker_; 46 bool worker_;
50 }; 47 };
51 48
52 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OBJECT_PROXY_H_ 49 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OBJECT_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698