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 // A BrowserPluginGuest is the browser side of a browser <--> embedder | 5 // A BrowserPluginGuest is the browser side of a browser <--> embedder |
6 // renderer channel. A BrowserPlugin (a WebPlugin) is on the embedder | 6 // renderer channel. A BrowserPlugin (a WebPlugin) is on the embedder |
7 // renderer side of browser <--> embedder renderer communication. | 7 // renderer side of browser <--> embedder renderer communication. |
8 // | 8 // |
9 // BrowserPluginGuest lives on the UI thread of the browser process. It has a | 9 // BrowserPluginGuest lives on the UI thread of the browser process. It has a |
10 // helper, BrowserPluginGuestHelper, which is a RenderViewHostObserver. The | 10 // helper, BrowserPluginGuestHelper, which is a RenderViewHostObserver. The |
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 int next_permission_request_id_; | 425 int next_permission_request_id_; |
426 // A map to store WebContents's media request object and callback. | 426 // A map to store WebContents's media request object and callback. |
427 // We need to store these because we need a roundtrip to the embedder to know | 427 // We need to store these because we need a roundtrip to the embedder to know |
428 // if we allow or disallow the request. The key of the map is unique only for | 428 // if we allow or disallow the request. The key of the map is unique only for |
429 // a given BrowserPluginGuest. | 429 // a given BrowserPluginGuest. |
430 MediaStreamRequestsMap media_requests_map_; | 430 MediaStreamRequestsMap media_requests_map_; |
431 // A map from request ID to instance ID for use by the New Window API. | 431 // A map from request ID to instance ID for use by the New Window API. |
432 typedef std::map<int, int> NewWindowRequestMap; | 432 typedef std::map<int, int> NewWindowRequestMap; |
433 NewWindowRequestMap new_window_request_map_; | 433 NewWindowRequestMap new_window_request_map_; |
434 | 434 |
| 435 std::string storage_partition_id_; |
| 436 bool persist_storage_; |
| 437 |
435 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 438 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
436 }; | 439 }; |
437 | 440 |
438 } // namespace content | 441 } // namespace content |
439 | 442 |
440 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 443 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
OLD | NEW |