OLD | NEW |
1 // Copyright 2014 The Chromium OS Authors. All rights reserved. | 1 // Copyright 2014 The Chromium OS 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 #include <clocale> | 5 #include <clocale> |
6 #include <sstream> | 6 #include <sstream> |
7 | 7 |
8 #include "ppapi/cpp/instance.h" | 8 #include "ppapi/cpp/instance.h" |
9 #include "ppapi/cpp/instance_handle.h" | 9 #include "ppapi/cpp/instance_handle.h" |
10 #include "ppapi/cpp/logging.h" | 10 #include "ppapi/cpp/logging.h" |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 // The browser keeps a singleton of this module. It calls the | 491 // The browser keeps a singleton of this module. It calls the |
492 // CreateInstance() method on the object you return to make instances. There | 492 // CreateInstance() method on the object you return to make instances. There |
493 // is one instance per <embed> tag on the page. This is the main binding | 493 // is one instance per <embed> tag on the page. This is the main binding |
494 // point for your NaCl module with the browser. | 494 // point for your NaCl module with the browser. |
495 Module* CreateModule() { | 495 Module* CreateModule() { |
496 std::setlocale(LC_ALL, "en_US.UTF-8"); | 496 std::setlocale(LC_ALL, "en_US.UTF-8"); |
497 return new NaclArchiveModule(); | 497 return new NaclArchiveModule(); |
498 } | 498 } |
499 | 499 |
500 } // namespace pp | 500 } // namespace pp |
OLD | NEW |