Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_EXTENSIONS_API_STREAMS_PRIVATE_STREAMS_PRIVATE_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_STREAMS_PRIVATE_STREAMS_PRIVATE_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_STREAMS_PRIVATE_STREAMS_PRIVATE_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_STREAMS_PRIVATE_STREAMS_PRIVATE_API_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 26 public: | 26 public: |
| 27 // Convenience method to get the StreamsPrivateAPI for a BrowserContext. | 27 // Convenience method to get the StreamsPrivateAPI for a BrowserContext. |
| 28 static StreamsPrivateAPI* Get(content::BrowserContext* context); | 28 static StreamsPrivateAPI* Get(content::BrowserContext* context); |
| 29 | 29 |
| 30 explicit StreamsPrivateAPI(content::BrowserContext* context); | 30 explicit StreamsPrivateAPI(content::BrowserContext* context); |
| 31 virtual ~StreamsPrivateAPI(); | 31 virtual ~StreamsPrivateAPI(); |
| 32 | 32 |
| 33 void ExecuteMimeTypeHandler(const std::string& extension_id, | 33 void ExecuteMimeTypeHandler(const std::string& extension_id, |
| 34 const content::WebContents* web_contents, | 34 const content::WebContents* web_contents, |
| 35 scoped_ptr<content::StreamHandle> stream, | 35 scoped_ptr<content::StreamHandle> stream, |
| 36 const std::string& view_id, | |
|
not at google - send to devlin
2014/04/30 00:48:51
this function needs to explain what these paramete
Zachary Kuznia
2014/04/30 01:23:35
Done.
| |
| 36 int64 expected_content_size); | 37 int64 expected_content_size); |
| 37 | 38 |
| 38 // BrowserContextKeyedAPI implementation. | 39 // BrowserContextKeyedAPI implementation. |
| 39 static BrowserContextKeyedAPIFactory<StreamsPrivateAPI>* GetFactoryInstance(); | 40 static BrowserContextKeyedAPIFactory<StreamsPrivateAPI>* GetFactoryInstance(); |
| 40 | 41 |
| 41 private: | 42 private: |
| 42 friend class BrowserContextKeyedAPIFactory<StreamsPrivateAPI>; | 43 friend class BrowserContextKeyedAPIFactory<StreamsPrivateAPI>; |
| 43 typedef std::map<std::string, | 44 typedef std::map<std::string, |
| 44 std::map<GURL, | 45 std::map<GURL, |
| 45 linked_ptr<content::StreamHandle> > > StreamMap; | 46 linked_ptr<content::StreamHandle> > > StreamMap; |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 62 base::WeakPtrFactory<StreamsPrivateAPI> weak_ptr_factory_; | 63 base::WeakPtrFactory<StreamsPrivateAPI> weak_ptr_factory_; |
| 63 | 64 |
| 64 // Listen to extension unloaded notifications. | 65 // Listen to extension unloaded notifications. |
| 65 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> | 66 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> |
| 66 extension_registry_observer_; | 67 extension_registry_observer_; |
| 67 }; | 68 }; |
| 68 | 69 |
| 69 } // namespace extensions | 70 } // namespace extensions |
| 70 | 71 |
| 71 #endif // CHROME_BROWSER_EXTENSIONS_API_STREAMS_PRIVATE_STREAMS_PRIVATE_API_H_ | 72 #endif // CHROME_BROWSER_EXTENSIONS_API_STREAMS_PRIVATE_STREAMS_PRIVATE_API_H_ |
| OLD | NEW |