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 3 // found in the LICENSE file. 4 5 #ifndef CHROME_BROWSER_UI_COCOA_LAST_ACTIVE_BROWSER_COCOA_H_ 6 #define CHROME_BROWSER_UI_COCOA_LAST_ACTIVE_BROWSER_COCOA_H_ 7 8 #include "build/build_config.h" 9 10 // This file exists only to provide a C function that BrowserList can friend. 11 // Access to this function is legitimately needed from a variety of places in 12 // the Cocoa frontend that cannot be allowed via C++ friendship as these places 13 // are in Obj-C objects. 14 // Do NOT include or build this file on non-Mac platforms. 15 #if !defined(OS_MACOSX) 16 #error This file is intended for use in the Cocoa frontend only. 17 #endif 18 19 class Browser; 20 21 namespace chrome { 22 23 Browser* GetLastActiveBrowser(); 24 25 } // namespace chrome 26 27 #endif // CHROME_BROWSER_UI_COCOA_LAST_ACTIVE_BROWSER_COCOA_H_ 28