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

Side by Side Diff: chrome/browser/appcache/appcache_frontend_proxy.h

Issue 2861007: AppCache: add plumbing to deliver logging messages to renderer process. These... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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
« no previous file with comments | « no previous file | chrome/browser/appcache/appcache_frontend_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef CHROME_BROWSER_APPCACHE_APPCACHE_FRONTEND_PROXY_H_ 5 #ifndef CHROME_BROWSER_APPCACHE_APPCACHE_FRONTEND_PROXY_H_
6 #define CHROME_BROWSER_APPCACHE_APPCACHE_FRONTEND_PROXY_H_ 6 #define CHROME_BROWSER_APPCACHE_APPCACHE_FRONTEND_PROXY_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ipc/ipc_message.h" 10 #include "ipc/ipc_message.h"
11 #include "webkit/appcache/appcache_interfaces.h" 11 #include "webkit/appcache/appcache_interfaces.h"
12 12
13 // Sends appcache related messages to a child process. 13 // Sends appcache related messages to a child process.
14 class AppCacheFrontendProxy : public appcache::AppCacheFrontend { 14 class AppCacheFrontendProxy : public appcache::AppCacheFrontend {
15 public: 15 public:
16 AppCacheFrontendProxy() : sender_(NULL) {} 16 AppCacheFrontendProxy() : sender_(NULL) {}
17 void set_sender(IPC::Message::Sender* sender) { sender_ = sender; } 17 void set_sender(IPC::Message::Sender* sender) { sender_ = sender; }
18 IPC::Message::Sender* sender() const { return sender_; } 18 IPC::Message::Sender* sender() const { return sender_; }
19 19
20 // AppCacheFrontend methods 20 // AppCacheFrontend methods
21 virtual void OnCacheSelected(int host_id, int64 cache_id , 21 virtual void OnCacheSelected(int host_id, int64 cache_id ,
22 appcache::Status); 22 appcache::Status);
23 virtual void OnStatusChanged(const std::vector<int>& host_ids, 23 virtual void OnStatusChanged(const std::vector<int>& host_ids,
24 appcache::Status status); 24 appcache::Status status);
25 virtual void OnEventRaised(const std::vector<int>& host_ids, 25 virtual void OnEventRaised(const std::vector<int>& host_ids,
26 appcache::EventID event_id); 26 appcache::EventID event_id);
27 virtual void OnProgressEventRaised(const std::vector<int>& host_ids, 27 virtual void OnProgressEventRaised(const std::vector<int>& host_ids,
28 const GURL& url, 28 const GURL& url,
29 int num_total, int num_complete); 29 int num_total, int num_complete);
30 virtual void OnLogMessage(int host_id, appcache::LogLevel log_level,
31 const std::string& message);
30 virtual void OnContentBlocked(int host_id); 32 virtual void OnContentBlocked(int host_id);
31 33
32 private: 34 private:
33 IPC::Message::Sender* sender_; 35 IPC::Message::Sender* sender_;
34 }; 36 };
35 37
36 #endif // CHROME_BROWSER_APPCACHE_APPCACHE_FRONTEND_PROXY_H_ 38 #endif // CHROME_BROWSER_APPCACHE_APPCACHE_FRONTEND_PROXY_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/appcache/appcache_frontend_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698