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

Side by Side Diff: chrome/browser/extensions/api/streams_private/streams_private_api.h

Issue 2331343005: PlzNavigate: Get StreamPrivate API to work. (Closed)
Patch Set: Remove include file Created 4 years, 3 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
OLDNEW
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 26 matching lines...) Expand all
37 // |web_contents| is used to determine the tabId where the document is being 37 // |web_contents| is used to determine the tabId where the document is being
38 // opened. The data for the document will be readable from |stream|, and 38 // opened. The data for the document will be readable from |stream|, and
39 // should be |expected_content_size| bytes long. If the viewer is being opened 39 // should be |expected_content_size| bytes long. If the viewer is being opened
40 // in a BrowserPlugin, specify a non-empty |view_id| of the plugin. |embedded| 40 // in a BrowserPlugin, specify a non-empty |view_id| of the plugin. |embedded|
41 // should be set to whether the document is embedded within another document. 41 // should be set to whether the document is embedded within another document.
42 void ExecuteMimeTypeHandler(const std::string& extension_id, 42 void ExecuteMimeTypeHandler(const std::string& extension_id,
43 content::WebContents* web_contents, 43 content::WebContents* web_contents,
44 std::unique_ptr<content::StreamInfo> stream, 44 std::unique_ptr<content::StreamInfo> stream,
45 const std::string& view_id, 45 const std::string& view_id,
46 int64_t expected_content_size, 46 int64_t expected_content_size,
47 bool embedded, 47 bool embedded);
48 int render_process_id,
49 int render_frame_id);
50 48
51 void AbortStream(const std::string& extension_id, 49 void AbortStream(const std::string& extension_id,
52 const GURL& stream_url, 50 const GURL& stream_url,
53 const base::Closure& callback); 51 const base::Closure& callback);
54 52
55 // BrowserContextKeyedAPI implementation. 53 // BrowserContextKeyedAPI implementation.
56 static BrowserContextKeyedAPIFactory<StreamsPrivateAPI>* GetFactoryInstance(); 54 static BrowserContextKeyedAPIFactory<StreamsPrivateAPI>* GetFactoryInstance();
57 55
58 private: 56 private:
59 friend class BrowserContextKeyedAPIFactory<StreamsPrivateAPI>; 57 friend class BrowserContextKeyedAPIFactory<StreamsPrivateAPI>;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 95
98 private: 96 private:
99 void OnClose(); 97 void OnClose();
100 98
101 std::string stream_url_; 99 std::string stream_url_;
102 }; 100 };
103 101
104 } // namespace extensions 102 } // namespace extensions
105 103
106 #endif // CHROME_BROWSER_EXTENSIONS_API_STREAMS_PRIVATE_STREAMS_PRIVATE_API_H_ 104 #endif // CHROME_BROWSER_EXTENSIONS_API_STREAMS_PRIVATE_STREAMS_PRIVATE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698