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

Side by Side Diff: chrome/browser/copresence/chrome_whispernet_client.h

Issue 444373004: Add Audible support to the whispernet client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « no previous file | chrome/browser/copresence/chrome_whispernet_client.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_COPRESENCE_CHROME_WHISPERNET_CLIENT_H_ 5 #ifndef CHROME_BROWSER_COPRESENCE_CHROME_WHISPERNET_CLIENT_H_
6 #define CHROME_BROWSER_COPRESENCE_CHROME_WHISPERNET_CLIENT_H_ 6 #define CHROME_BROWSER_COPRESENCE_CHROME_WHISPERNET_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 22 matching lines...) Expand all
33 class ChromeWhispernetClient : public copresence::WhispernetClient { 33 class ChromeWhispernetClient : public copresence::WhispernetClient {
34 public: 34 public:
35 // The browser context needs to outlive this class. 35 // The browser context needs to outlive this class.
36 explicit ChromeWhispernetClient(content::BrowserContext* browser_context); 36 explicit ChromeWhispernetClient(content::BrowserContext* browser_context);
37 virtual ~ChromeWhispernetClient(); 37 virtual ~ChromeWhispernetClient();
38 38
39 // WhispernetClient overrides: 39 // WhispernetClient overrides:
40 virtual void Initialize(const SuccessCallback& init_callback) OVERRIDE; 40 virtual void Initialize(const SuccessCallback& init_callback) OVERRIDE;
41 virtual void Shutdown() OVERRIDE; 41 virtual void Shutdown() OVERRIDE;
42 42
43 virtual void EncodeToken(const std::string& token) OVERRIDE; 43 virtual void EncodeToken(const std::string& token, bool audible) OVERRIDE;
44 virtual void DecodeSamples(const std::string& samples) OVERRIDE; 44 virtual void DecodeSamples(const std::string& samples) OVERRIDE;
45 virtual void DetectBroadcast() OVERRIDE; 45 virtual void DetectBroadcast() OVERRIDE;
46 46
47 virtual void RegisterTokensCallback( 47 virtual void RegisterTokensCallback(
48 const TokensCallback& tokens_callback) OVERRIDE; 48 const TokensCallback& tokens_callback) OVERRIDE;
49 virtual void RegisterSamplesCallback( 49 virtual void RegisterSamplesCallback(
50 const SamplesCallback& samples_callback) OVERRIDE; 50 const SamplesCallback& samples_callback) OVERRIDE;
51 virtual void RegisterDetectBroadcastCallback( 51 virtual void RegisterDetectBroadcastCallback(
52 const SuccessCallback& db_callback) OVERRIDE; 52 const SuccessCallback& db_callback) OVERRIDE;
53 53
(...skipping 21 matching lines...) Expand all
75 TokensCallback tokens_callback_; 75 TokensCallback tokens_callback_;
76 SamplesCallback samples_callback_; 76 SamplesCallback samples_callback_;
77 SuccessCallback db_callback_; 77 SuccessCallback db_callback_;
78 78
79 bool extension_loaded_; 79 bool extension_loaded_;
80 80
81 DISALLOW_COPY_AND_ASSIGN(ChromeWhispernetClient); 81 DISALLOW_COPY_AND_ASSIGN(ChromeWhispernetClient);
82 }; 82 };
83 83
84 #endif // CHROME_BROWSER_COPRESENCE_CHROME_WHISPERNET_CLIENT_H_ 84 #endif // CHROME_BROWSER_COPRESENCE_CHROME_WHISPERNET_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/copresence/chrome_whispernet_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698