diff options
Diffstat (limited to 'content/app/content_main_delegate.h')
-rw-r--r-- | content/app/content_main_delegate.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/content/app/content_main_delegate.h b/content/app/content_main_delegate.h new file mode 100644 index 0000000..78b84dc --- /dev/null +++ b/content/app/content_main_delegate.h @@ -0,0 +1,29 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CONTENT_APP_CONTENT_MAIN_DELEGATE_H_ +#define CONTENT_APP_CONTENT_MAIN_DELEGATE_H_ +#pragma once + +namespace base { +namespace mac { +class ScopedNSAutoreleasePool; +} +} + +namespace content { + +class ContentMainDelegate { + public: + // Tells the embedder that the absolute basic startup has been done, i.e. it's + // now safe to create singeltons and check the command line. Return true if + // the process should exit afterwards, and if so, |exit_code| should be set. + virtual bool BasicStartupComplete( + int* exit_code, + base::mac::ScopedNSAutoreleasePool* autorelease_pool) = 0; +}; + +} // namespace content + +#endif // CONTENT_APP_CONTENT_MAIN_DELEGATE_H_ |