OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_PUBLIC_COMMON_BROWSER_PLUGIN_GUEST_DELEGATE_MODE_H_ | |
6 #define CONTENT_PUBLIC_COMMON_BROWSER_PLUGIN_GUEST_DELEGATE_MODE_H_ | |
lfg
2016/07/30 00:05:25
Update defines.
EhsanK
2016/09/01 21:51:47
Done.
| |
7 | |
8 #include "base/macros.h" | |
9 #include "content/common/content_export.h" | |
10 | |
11 namespace content { | |
12 | |
13 class WebContents; | |
14 | |
15 class CONTENT_EXPORT BrowserPluginGuestDelegateMode { | |
lfg
2016/07/30 00:05:25
This name is confusing, it's not obvious what it m
EhsanK
2016/09/01 21:51:47
Done.
| |
16 public: | |
17 enum DelegateMode { | |
lfg
2016/07/30 00:05:25
This seems overly complicated and doesn't add much
EhsanK
2016/09/01 21:51:47
Done.
| |
18 /* The WebContents does not correspond to a guest. */ | |
19 NONE, | |
20 /* The WebContents is implemented using cross process frames. */ | |
21 USING_CROSS_PROCESS_FRAMES, | |
22 /* The WebContents is not using cross process frames, but it is a guest. */ | |
23 NOT_USING_CROSS_PROCESS_FRAMES, | |
24 }; | |
25 | |
26 // TODO(ekaramad): Remove the following method once MimeHandlerViewGuest uses | |
27 // OOPIF (https://crbug.com/563285). | |
28 // Returns the corresponding DelegateMode for the given |web_contents|. | |
29 static DelegateMode DelegateModeFromWebContents(WebContents* web_contents); | |
30 | |
31 private: | |
32 BrowserPluginGuestDelegateMode(); // Not instantiable | |
33 | |
34 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuestDelegateMode); | |
35 }; | |
36 | |
37 } // namespace | |
38 | |
39 #endif // CONTENT_PUBLIC_COMMON_BROWSER_PLUGIN_GUEST_DELEGATE_MODE_H_ | |
OLD | NEW |