diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-10 22:22:46 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-10 22:22:46 +0000 |
commit | 93df81ea498b7ee1afb839ae58fafaf445fa8054 (patch) | |
tree | 9c0773fb4c69bbebdbd63295c73b84293a1ea5c7 /ppapi/proxy/connection.h | |
parent | b556c2ea563365710107e788eea58d09239b9b50 (diff) | |
download | chromium_src-93df81ea498b7ee1afb839ae58fafaf445fa8054.zip chromium_src-93df81ea498b7ee1afb839ae58fafaf445fa8054.tar.gz chromium_src-93df81ea498b7ee1afb839ae58fafaf445fa8054.tar.bz2 |
Bluetooth API: improve discovery
This CL:
- eliminates unnecessary dispatches
- correctly handles devices that are discovered before interest is
registered
TEST=ran api test
BUG=133179
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150898
Review URL: https://chromiumcodereview.appspot.com/10815072
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151138 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/connection.h')
-rw-r--r-- | ppapi/proxy/connection.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/ppapi/proxy/connection.h b/ppapi/proxy/connection.h new file mode 100644 index 0000000..5f99f06 --- /dev/null +++ b/ppapi/proxy/connection.h @@ -0,0 +1,34 @@ +// Copyright (c) 2012 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 PPAPI_PROXY_CONNECTION_H_ +#define PPAPI_PROXY_CONNECTION_H_ + +namespace IPC { +class Sender; +} + +namespace ppapi { +namespace proxy { + +// This struct holds the channels that a resource uses to send message to the +// browser and renderer. +struct Connection { + Connection() : browser_sender(0), renderer_sender(0) { + } + Connection(IPC::Sender* browser, IPC::Sender* renderer) + : browser_sender(browser), + renderer_sender(renderer) { + } + + IPC::Sender* browser_sender; + IPC::Sender* renderer_sender; +}; + +} // namespace proxy +} // namespace ppapi + + +#endif // PPAPI_PROXY_CONNECTION_H_ + |