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

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

Issue 6697004: Add an exception wrapper to the WindowProc functions so... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 9 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/win/wrapped_window_proc.h"
6
7 #include "base/atomicops.h"
8
9 namespace {
10
11 base::win::WinProcExceptionFilter s_exception_filter = NULL;
12
13 } // namespace.
14
15 namespace base {
16 namespace win {
17
18 WinProcExceptionFilter SetWinProcExceptionFilter(
19 WinProcExceptionFilter filter) {
20 subtle::AtomicWord rv = subtle::NoBarrier_AtomicExchange(
21 reinterpret_cast<subtle::AtomicWord*>(&s_exception_filter),
22 reinterpret_cast<subtle::AtomicWord>(filter));
23 return reinterpret_cast<WinProcExceptionFilter>(rv);
24 }
25
26 int CallExceptionFilter(EXCEPTION_POINTERS* info) {
27 return s_exception_filter ? s_exception_filter(info) :
28 EXCEPTION_CONTINUE_SEARCH;
29 }
30
31 } // namespace win
32 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698