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

Unified Diff: chrome/browser/device_orientation/dispatcher_host.h

Issue 5698008: Switch a bunch of remaining filters to derive from BrowserMessageFilters so t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/device_orientation/dispatcher_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/device_orientation/dispatcher_host.h
===================================================================
--- chrome/browser/device_orientation/dispatcher_host.h (revision 68877)
+++ chrome/browser/device_orientation/dispatcher_host.h (working copy)
@@ -1,46 +0,0 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_DEVICE_ORIENTATION_DISPATCHER_HOST_H_
-#define CHROME_BROWSER_DEVICE_ORIENTATION_DISPATCHER_HOST_H_
-
-#include <map>
-
-#include "base/ref_counted.h"
-#include "chrome/browser/device_orientation/provider.h"
-
-namespace IPC { class Message; }
-
-namespace device_orientation {
-
-class Orientation;
-
-class DispatcherHost : public base::RefCounted<DispatcherHost> {
- public:
- explicit DispatcherHost(int process_id);
- bool OnMessageReceived(const IPC::Message& msg, bool* msg_was_ok);
-
- private:
- virtual ~DispatcherHost();
- friend class base::RefCounted<DispatcherHost>;
-
- void OnStartUpdating(int render_view_id);
- void OnStopUpdating(int render_view_id);
-
- // Helper class that observes a Provider and forwards updates to a RenderView.
- class ObserverDelegate;
-
- int process_id_;
-
- // map from render_view_id to ObserverDelegate.
- std::map<int, scoped_refptr<ObserverDelegate> > observers_map_;
-
- scoped_refptr<Provider> provider_;
-
- DISALLOW_COPY_AND_ASSIGN(DispatcherHost);
-};
-
-} // namespace device_orientation
-
-#endif // CHROME_BROWSER_DEVICE_ORIENTATION_DISPATCHER_HOST_H_
« no previous file with comments | « no previous file | chrome/browser/device_orientation/dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698