Index: content/public/app/content_main_delegate.h |
diff --git a/content/app/content_main_delegate.h b/content/public/app/content_main_delegate.h |
similarity index 80% |
rename from content/app/content_main_delegate.h |
rename to content/public/app/content_main_delegate.h |
index 361afa2dd3d59f3edfb9eaf511d94ff893168874..bf424f79ef2b90526b64fdeb1731df313823178b 100644 |
--- a/content/app/content_main_delegate.h |
+++ b/content/public/app/content_main_delegate.h |
@@ -2,73 +2,72 @@ |
// 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_ |
+#ifndef CONTENT_PUBLIC_APP_CONTENT_MAIN_DELEGATE_H_ |
+#define CONTENT_PUBLIC_APP_CONTENT_MAIN_DELEGATE_H_ |
#pragma once |
#include <string> |
#include "build/build_config.h" |
-#include "content/common/content_export.h" |
struct MainFunctionParams; |
class ZygoteForkDelegate; |
namespace content { |
-class CONTENT_EXPORT ContentMainDelegate { |
+class ContentMainDelegate { |
public: |
- virtual ~ContentMainDelegate(); |
+ virtual ~ContentMainDelegate() {} |
// Tells the embedder that the absolute basic startup has been done, i.e. it's |
// now safe to create singletons and check the command line. Return true if |
// the process should exit afterwards, and if so, |exit_code| should be set. |
// This is the place for embedder to do the things that must happen at the |
// start. Most of its startup code should be in the methods below. |
- virtual bool BasicStartupComplete(int* exit_code); |
+ virtual bool BasicStartupComplete(int* exit_code) = 0; |
// This is where the embedder puts all of its startup code that needs to run |
// before the sandbox is engaged. |
- virtual void PreSandboxStartup(); |
+ virtual void PreSandboxStartup() = 0; |
// This is where the embedder can add startup code to run after the sandbox |
// has been initialized. |
- virtual void SandboxInitialized(const std::string& process_type); |
+ virtual void SandboxInitialized(const std::string& process_type) = 0; |
// Asks the embedder to start a process that content doesn't know about. |
virtual int RunProcess(const std::string& process_type, |
- const MainFunctionParams& main_function_params); |
+ const MainFunctionParams& main_function_params) = 0; |
// Called right before the process exits. |
- virtual void ProcessExiting(const std::string& process_type); |
+ virtual void ProcessExiting(const std::string& process_type) = 0; |
#if defined(OS_MACOSX) |
// Returns true if the process registers with the system monitor, so that we |
// can allocate an IO port for it before the sandbox is initialized. Embedders |
// are called only for process types that content doesn't know about. |
virtual bool ProcessRegistersWithSystemProcess( |
- const std::string& process_type); |
+ const std::string& process_type) = 0; |
// Used to determine if we should send the mach port to the parent process or |
// not. The embedder usually sends it for all child processes, use this to |
// override this behavior. |
- virtual bool ShouldSendMachPort(const std::string& process_type); |
+ virtual bool ShouldSendMachPort(const std::string& process_type) = 0; |
// Allows the embedder to override initializing the sandbox. This is needed |
// because some processes might not want to enable it right away or might not |
// want it at all. |
- virtual bool DelaySandboxInitialization(const std::string& process_type); |
+ virtual bool DelaySandboxInitialization(const std::string& process_type) = 0; |
#elif defined(OS_POSIX) |
// Tells the embedder that the zygote process is starting, and allows it to |
// specify a zygote delegate if it wishes. |
- virtual ZygoteForkDelegate* ZygoteStarting(); |
+ virtual ZygoteForkDelegate* ZygoteStarting() = 0; |
// Called every time the zygote process forks. |
- virtual void ZygoteForked(); |
+ virtual void ZygoteForked() = 0; |
#endif // OS_MACOSX |
}; |
} // namespace content |
-#endif // CONTENT_APP_CONTENT_MAIN_DELEGATE_H_ |
+#endif // CONTENT_PUBLIC_APP_CONTENT_MAIN_DELEGATE_H_ |