| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_FRAME_NP_BROWSER_FUNCTIONS_H_ | 5 #ifndef CHROME_FRAME_NP_BROWSER_FUNCTIONS_H_ |
| 6 #define CHROME_FRAME_NP_BROWSER_FUNCTIONS_H_ | 6 #define CHROME_FRAME_NP_BROWSER_FUNCTIONS_H_ |
| 7 | 7 |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "third_party/npapi/bindings/npapi.h" | 9 #include "third_party/npapi/bindings/npapi.h" |
| 10 #include "third_party/npapi/bindings/nphostapi.h" | 10 #include "third_party/npapi/bindings/nphostapi.h" |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 private: | 269 private: |
| 270 NpoType* npo_; | 270 NpoType* npo_; |
| 271 DISALLOW_COPY_AND_ASSIGN(ScopedNpObject); | 271 DISALLOW_COPY_AND_ASSIGN(ScopedNpObject); |
| 272 }; | 272 }; |
| 273 | 273 |
| 274 // Allocates a new NPUTF8 string and assigns it to the variant. | 274 // Allocates a new NPUTF8 string and assigns it to the variant. |
| 275 // If memory allocation fails, the variant type will be set to NULL. | 275 // If memory allocation fails, the variant type will be set to NULL. |
| 276 // The memory allocation is done via the npapi browser functions. | 276 // The memory allocation is done via the npapi browser functions. |
| 277 void AllocateStringVariant(const std::string& str, NPVariant* var); | 277 void AllocateStringVariant(const std::string& str, NPVariant* var); |
| 278 | 278 |
| 279 // Returns true if the host browser supports the NPAPI redirect notification |
| 280 // spec. https://wiki.mozilla.org/NPAPI:HTTPRedirectHandling |
| 281 bool BrowserSupportsRedirectNotification(); |
| 282 |
| 279 #endif // CHROME_FRAME_NP_BROWSER_FUNCTIONS_H_ | 283 #endif // CHROME_FRAME_NP_BROWSER_FUNCTIONS_H_ |
| OLD | NEW |