summaryrefslogtreecommitdiffstats
path: root/gin/modules
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-12 21:32:34 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-12 21:32:34 +0000
commit48c21631008649ad2575b16fe33b336858dcdde9 (patch)
treef6fd9761eb0001c806962937583ea15eafd7ed7b /gin/modules
parentedc3af84cd907175e0dd24bfc377d20c06fd7d0e (diff)
downloadchromium_src-48c21631008649ad2575b16fe33b336858dcdde9.zip
chromium_src-48c21631008649ad2575b16fe33b336858dcdde9.tar.gz
chromium_src-48c21631008649ad2575b16fe33b336858dcdde9.tar.bz2
[gin] Turn gin into a component
This will allow for using gin from content and blink at the same time in a component build BUG=321631 R=abarth@chromium.org,aa@chromium.org Review URL: https://codereview.chromium.org/101583004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240425 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gin/modules')
-rw-r--r--gin/modules/console.h3
-rw-r--r--gin/modules/file_module_provider.h3
-rw-r--r--gin/modules/module_registry.h3
-rw-r--r--gin/modules/module_runner_delegate.h3
4 files changed, 8 insertions, 4 deletions
diff --git a/gin/modules/console.h b/gin/modules/console.h
index 259fdaa7..8753961 100644
--- a/gin/modules/console.h
+++ b/gin/modules/console.h
@@ -5,13 +5,14 @@
#ifndef GIN_MODULES_CONSOLE_H_
#define GIN_MODULES_CONSOLE_H_
+#include "gin/gin_export.h"
#include "v8/include/v8.h"
namespace gin {
// The Console module provides a basic API for printing to stdout. Over time,
// we'd like to evolve the API to match window.console in browsers.
-class Console {
+class GIN_EXPORT Console {
public:
static const char kModuleName[];
static v8::Local<v8::ObjectTemplate> GetTemplate(v8::Isolate* isolate);
diff --git a/gin/modules/file_module_provider.h b/gin/modules/file_module_provider.h
index 89e83b3..dd75a0fe 100644
--- a/gin/modules/file_module_provider.h
+++ b/gin/modules/file_module_provider.h
@@ -10,6 +10,7 @@
#include <vector>
#include "base/files/file_path.h"
+#include "gin/gin_export.h"
#include "gin/runner.h"
namespace gin {
@@ -18,7 +19,7 @@ namespace gin {
// modules in the directories indiciated by |search_paths|. Although we still
// read from the file system on the main thread, we'll eventually want to move
// the reads to a background thread.
-class FileModuleProvider {
+class GIN_EXPORT FileModuleProvider {
public:
explicit FileModuleProvider(
const std::vector<base::FilePath>& search_paths);
diff --git a/gin/modules/module_registry.h b/gin/modules/module_registry.h
index d3bed32..27606cd 100644
--- a/gin/modules/module_registry.h
+++ b/gin/modules/module_registry.h
@@ -13,6 +13,7 @@
#include "base/callback.h"
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
+#include "gin/gin_export.h"
#include "gin/per_context_data.h"
namespace gin {
@@ -30,7 +31,7 @@ struct PendingModule;
// function. The spec says we should only add that property once our
// implementation complies with the specification.
//
-class ModuleRegistry : public ContextSupplement {
+class GIN_EXPORT ModuleRegistry : public ContextSupplement {
public:
typedef base::Callback<void (v8::Handle<v8::Value>)> LoadModuleCallback;
diff --git a/gin/modules/module_runner_delegate.h b/gin/modules/module_runner_delegate.h
index 1873d5a..06077f4 100644
--- a/gin/modules/module_runner_delegate.h
+++ b/gin/modules/module_runner_delegate.h
@@ -8,6 +8,7 @@
#include <map>
#include "base/compiler_specific.h"
+#include "gin/gin_export.h"
#include "gin/modules/file_module_provider.h"
#include "gin/runner.h"
@@ -19,7 +20,7 @@ typedef v8::Local<v8::ObjectTemplate> (*ModuleTemplateGetter)(
// Emebedders that use AMD modules will probably want to use a RunnerDelegate
// that inherits from ModuleRunnerDelegate. ModuleRunnerDelegate lets embedders
// register built-in modules and routes module requests to FileModuleProvider.
-class ModuleRunnerDelegate : public RunnerDelegate {
+class GIN_EXPORT ModuleRunnerDelegate : public RunnerDelegate {
public:
explicit ModuleRunnerDelegate(
const std::vector<base::FilePath>& search_paths);