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

Side by Side Diff: base/win/wrapped_window_proc.h

Issue 10735044: Remove #pragma once. Just from base/ for now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « base/win/windows_version.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // Provides a way to handle exceptions that happen while a WindowProc is 5 // Provides a way to handle exceptions that happen while a WindowProc is
6 // running. The behavior of exceptions generated inside a WindowProc is OS 6 // running. The behavior of exceptions generated inside a WindowProc is OS
7 // dependent, but it is possible that the OS just ignores the exception and 7 // dependent, but it is possible that the OS just ignores the exception and
8 // continues execution, which leads to unpredictable behavior for Chrome. 8 // continues execution, which leads to unpredictable behavior for Chrome.
9 9
10 #ifndef BASE_WIN_WRAPPED_WINDOW_PROC_H_ 10 #ifndef BASE_WIN_WRAPPED_WINDOW_PROC_H_
11 #define BASE_WIN_WRAPPED_WINDOW_PROC_H_ 11 #define BASE_WIN_WRAPPED_WINDOW_PROC_H_
12 #pragma once
13 12
14 #include <windows.h> 13 #include <windows.h>
15 14
16 #include "base/base_export.h" 15 #include "base/base_export.h"
17 #include "base/string16.h" 16 #include "base/string16.h"
18 17
19 namespace base { 18 namespace base {
20 namespace win { 19 namespace win {
21 20
22 // An exception filter for a WindowProc. The return value determines how the 21 // An exception filter for a WindowProc. The return value determines how the
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 rv = proc(hwnd, message, wparam, lparam); 76 rv = proc(hwnd, message, wparam, lparam);
78 } __except(CallExceptionFilter(GetExceptionInformation())) { 77 } __except(CallExceptionFilter(GetExceptionInformation())) {
79 } 78 }
80 return rv; 79 return rv;
81 } 80 }
82 81
83 } // namespace win 82 } // namespace win
84 } // namespace base 83 } // namespace base
85 84
86 #endif // BASE_WIN_WRAPPED_WINDOW_PROC_H_ 85 #endif // BASE_WIN_WRAPPED_WINDOW_PROC_H_
OLDNEW
« no previous file with comments | « base/win/windows_version.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698