| OLD | NEW |
| 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_LOCAL_DISCOVERY_PRIVETV3_SESSION_H_ | 5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_PRIVETV3_SESSION_H_ |
| 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_PRIVETV3_SESSION_H_ | 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_PRIVETV3_SESSION_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 const base::DictionaryValue& input, | 53 const base::DictionaryValue& input, |
| 54 const MessageCallback& callback); | 54 const MessageCallback& callback); |
| 55 | 55 |
| 56 private: | 56 private: |
| 57 void RunCallback(const base::Closure& callback); | 57 void RunCallback(const base::Closure& callback); |
| 58 void DeleteFetcher(const FetcherDelegate* fetcher); | 58 void DeleteFetcher(const FetcherDelegate* fetcher); |
| 59 | 59 |
| 60 scoped_ptr<PrivetHTTPClient> client_; | 60 scoped_ptr<PrivetHTTPClient> client_; |
| 61 bool code_confirmed_; | 61 bool code_confirmed_; |
| 62 ScopedVector<FetcherDelegate> fetchers_; | 62 ScopedVector<FetcherDelegate> fetchers_; |
| 63 std::string privet_auth_token_; |
| 64 |
| 63 base::WeakPtrFactory<PrivetV3Session> weak_ptr_factory_; | 65 base::WeakPtrFactory<PrivetV3Session> weak_ptr_factory_; |
| 64 DISALLOW_COPY_AND_ASSIGN(PrivetV3Session); | 66 DISALLOW_COPY_AND_ASSIGN(PrivetV3Session); |
| 65 }; | 67 }; |
| 66 | 68 |
| 67 } // namespace local_discovery | 69 } // namespace local_discovery |
| 68 | 70 |
| 69 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVETV3_SESSION_H_ | 71 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVETV3_SESSION_H_ |
| OLD | NEW |