| OLD | NEW |
| 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 <windows.h> | 5 #include <windows.h> |
| 6 #include <shlwapi.h> | 6 #include <shlwapi.h> |
| 7 | 7 |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 ClearDidRun(dll_path); | 348 ClearDidRun(dll_path); |
| 349 } | 349 } |
| 350 return return_code; | 350 return return_code; |
| 351 } | 351 } |
| 352 }; | 352 }; |
| 353 | 353 |
| 354 //============================================================================= | 354 //============================================================================= |
| 355 | 355 |
| 356 class ChromiumDllLoader : public MainDllLoader { | 356 class ChromiumDllLoader : public MainDllLoader { |
| 357 protected: | 357 protected: |
| 358 virtual void OnBeforeLaunch(const base::string16& dll_path) OVERRIDE { | 358 virtual void OnBeforeLaunch(const base::string16& dll_path) override { |
| 359 } | 359 } |
| 360 virtual int OnBeforeExit(int return_code, | 360 virtual int OnBeforeExit(int return_code, |
| 361 const base::string16& dll_path) OVERRIDE { | 361 const base::string16& dll_path) override { |
| 362 return return_code; | 362 return return_code; |
| 363 } | 363 } |
| 364 }; | 364 }; |
| 365 | 365 |
| 366 MainDllLoader* MakeMainDllLoader() { | 366 MainDllLoader* MakeMainDllLoader() { |
| 367 #if defined(GOOGLE_CHROME_BUILD) | 367 #if defined(GOOGLE_CHROME_BUILD) |
| 368 return new ChromeDllLoader(); | 368 return new ChromeDllLoader(); |
| 369 #else | 369 #else |
| 370 return new ChromiumDllLoader(); | 370 return new ChromiumDllLoader(); |
| 371 #endif | 371 #endif |
| 372 } | 372 } |
| OLD | NEW |