Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
|
robertshield
2011/06/28 20:49:35
MWAHAHA! The day is mine! 2010 -> 2011
grt (UTC plus 2)
2011/06/28 20:57:38
Done.
| |
| 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_FRAME_NAVIGATION_CONSTRAINTS_H_ | 5 #ifndef CHROME_FRAME_NAVIGATION_CONSTRAINTS_H_ |
| 6 #define CHROME_FRAME_NAVIGATION_CONSTRAINTS_H_ | 6 #define CHROME_FRAME_NAVIGATION_CONSTRAINTS_H_ |
| 7 | 7 |
| 8 #include <urlmon.h> | 8 #include <urlmon.h> |
| 9 #include <windows.h> | 9 #include <windows.h> |
| 10 | 10 |
| 11 #include "base/win/scoped_comptr.h" | 11 #include "base/win/scoped_comptr.h" |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 31 virtual bool IsSchemeAllowed(const GURL& url); | 31 virtual bool IsSchemeAllowed(const GURL& url); |
| 32 virtual bool IsZoneAllowed(const GURL& url); | 32 virtual bool IsZoneAllowed(const GURL& url); |
| 33 | 33 |
| 34 bool is_privileged() const; | 34 bool is_privileged() const; |
| 35 void set_is_privileged(bool is_privileged); | 35 void set_is_privileged(bool is_privileged); |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 base::win::ScopedComPtr<IInternetSecurityManager> security_manager_; | 38 base::win::ScopedComPtr<IInternetSecurityManager> security_manager_; |
| 39 | 39 |
| 40 // The plugin is privileged if it is: | 40 // The plugin is privileged if it is: |
| 41 // * Invoked by a window running under the system principal in FireFox. | |
| 42 // * Being hosted by a custom host exposing the SID_ChromeFramePrivileged | 41 // * Being hosted by a custom host exposing the SID_ChromeFramePrivileged |
| 43 // service. | 42 // service. |
| 44 // | 43 // |
| 45 // When privileged, additional interfaces are made available to the user. | 44 // When privileged, additional interfaces are made available to the user. |
| 46 bool is_privileged_; | 45 bool is_privileged_; |
| 47 }; | 46 }; |
| 48 | 47 |
| 49 #endif // CHROME_FRAME_NAVIGATION_CONSTRAINTS_H_ | 48 #endif // CHROME_FRAME_NAVIGATION_CONSTRAINTS_H_ |
| OLD | NEW |