Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1256)

Side by Side Diff: native_client_sdk/src/examples/geturl/geturl_handler.cc

Issue 11147004: use CXX compiler for c++ files (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: feedback Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #include <stdio.h> 5 #include <stdio.h>
6 #include <stdlib.h> 6 #include <stdlib.h>
7 #include "ppapi/c/pp_errors.h" 7 #include "ppapi/c/pp_errors.h"
8 #include "ppapi/c/ppb_instance.h" 8 #include "ppapi/c/ppb_instance.h"
9 #include "ppapi/cpp/module.h" 9 #include "ppapi/cpp/module.h"
10 #include "ppapi/cpp/var.h" 10 #include "ppapi/cpp/var.h"
11 11
12 #include "geturl_handler.h" 12 #include "geturl_handler.h"
13 13
14 #ifdef WIN32 14 #ifdef WIN32
15 #undef min 15 #undef min
16 #undef max 16 #undef max
17 #undef PostMessage 17 #undef PostMessage
18
19 // Allow 'this' in initializer list
20 #pragma warning(disable : 4355)
18 #endif 21 #endif
19 22
20 GetURLHandler* GetURLHandler::Create(pp::Instance* instance, 23 GetURLHandler* GetURLHandler::Create(pp::Instance* instance,
21 const std::string& url) { 24 const std::string& url) {
22 return new GetURLHandler(instance, url); 25 return new GetURLHandler(instance, url);
23 } 26 }
24 27
25 GetURLHandler::GetURLHandler(pp::Instance* instance, 28 GetURLHandler::GetURLHandler(pp::Instance* instance,
26 const std::string& url) 29 const std::string& url)
27 : instance_(instance), 30 : instance_(instance),
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 printf("GetURLHandler::ReportResult(Ok).\n"); 157 printf("GetURLHandler::ReportResult(Ok).\n");
155 else 158 else
156 printf("GetURLHandler::ReportResult(Err). %s\n", text.c_str()); 159 printf("GetURLHandler::ReportResult(Err). %s\n", text.c_str());
157 fflush(stdout); 160 fflush(stdout);
158 if (instance_) { 161 if (instance_) {
159 pp::Var var_result(fname + "\n" + text); 162 pp::Var var_result(fname + "\n" + text);
160 instance_->PostMessage(var_result); 163 instance_->PostMessage(var_result);
161 } 164 }
162 } 165 }
163 166
OLDNEW
« no previous file with comments | « native_client_sdk/src/examples/file_histogram/file_histogram.cc ('k') | native_client_sdk/src/examples/mouselock/mouselock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698